capacitor-social-auth
v0.0.6
Published
Capacitor Social Auth Plugin
Readme
capacitor-social-auth
Capacitor Social Auth Plugin
Install
npm install capacitor-social-auth
npx cap syncAPI
signIn(...)
signIn(options: SocialAuthOptions) => Promise<SocialAuthResult>| Param | Type |
| ------------- | --------------------------------------------------------------- |
| options | SocialAuthOptions |
Returns: Promise<SocialAuthResult>
signOut()
signOut() => Promise<void>Interfaces
SocialAuthResult
| Prop | Type |
| ----------------- | ------------------- |
| idToken | string |
| id | string |
| email | string |
| displayName | string |
| givenName | string |
| familyName | string |
| photoUrl | string |
SocialAuthOptions
| Prop | Type |
| -------------------- | ----------------------------------------------------------------- |
| provider | SocialAuthProvider |
| clientId | string |
| serverClientId | string |
| scopes | string[] |
Enums
SocialAuthProvider
| Members | Value |
| ------------ | --------------------- |
| GOOGLE | 'google' |
| APPLE | 'apple' |
