fix: login component in app not respecting allowed auth provider ids
This commit is contained in:
@@ -312,8 +312,10 @@ const authProviders: AuthProviderItem[] = [
|
||||
},
|
||||
]
|
||||
|
||||
const allowedAuthProvidersIDsString: string | undefined = import.meta.env
|
||||
.VITE_ALLOWED_AUTH_PROVIDERS
|
||||
// Do not format the `import.meta.env.VITE_ALLOWED_AUTH_PROVIDERS` call into multiple lines!
|
||||
// prettier-ignore
|
||||
const allowedAuthProvidersIDsString =
|
||||
import.meta.env.VITE_ALLOWED_AUTH_PROVIDERS
|
||||
|
||||
const allowedAuthProvidersIDs = allowedAuthProvidersIDsString
|
||||
? allowedAuthProvidersIDsString.split(",")
|
||||
|
||||
@@ -182,7 +182,7 @@ type InvokeActionFunc = {
|
||||
* @param args The argument passed to the action handler. Optional if action has no args required
|
||||
*/
|
||||
export const invokeAction: InvokeActionFunc = <
|
||||
A extends HoppAction | HoppActionWithArgs
|
||||
A extends HoppAction | HoppActionWithArgs,
|
||||
>(
|
||||
action: A,
|
||||
args: ArgOfHoppAction<A>
|
||||
|
||||
Reference in New Issue
Block a user