feat: dynamically load enabled auth providers (#3646)

This commit is contained in:
Akash K
2023-12-13 23:38:21 +05:30
committed by GitHub
parent 47e009267b
commit 5209c0a8ca
14 changed files with 159 additions and 103 deletions

View File

@@ -2,6 +2,7 @@ import { ClientOptions } from "@urql/core"
import { Observable } from "rxjs"
import { Component } from "vue"
import { getI18n } from "~/modules/i18n"
import * as E from "fp-ts/Either"
/**
* A common (and required) set of fields that describe a user.
@@ -222,6 +223,11 @@ export type AuthPlatformDef = {
*/
setDisplayName: (name: string) => Promise<void>
/**
* Returns the list of allowed auth providers for the platform ( the currently supported ones are GOOGLE, GITHUB, EMAIL, MICROSOFT, SAML )
*/
getAllowedAuthProviders: () => Promise<E.Either<string, string[]>>
/**
* Defines the additional login items that should be shown in the login screen
*/