addOauthProvider
Handles OAuth authentication by augmenting the provided arguments with a type and performing authentication based on the OAuth mode (either using redirect or popup).
Import
Parameters
args
Omit<Extract<AuthParams, { type: "oauth" }>, "type">
Authentication parameters omitting the type, which will be set to “oauth”
Returns
Promise<OauthProviderInfo>
A promise that resolves to an OauthProviderInfo
object containing provider information and the ID token.