Usage
auth: {
strategies: {
facebook: {
endpoints: {
userInfo: 'https://graph.facebook.com/v6.0/me?fields=id,name,picture{url}'
},
clientId: '...',
scope: ['public_profile', 'email']
},
}
}
Anywhere in your application logic:
const $auth = useAuth()
$auth.loginWith('facebook')
๐ This provider is based on oauth2 scheme and supports all scheme options.
Obtaining clientId
This option is REQUIRED. To obtain one, create your app in Facebook Developers and add "Facebook Login" product. Then set valid callback URLs. Client ID is same as your "App ID".
Table of Contents