@@ -9,6 +9,7 @@ To install the plugin:
99``` bash
1010npm install @adminforth/oauth --save
1111npm install @adminforth/google-oauth-adapter --save # for Google OAuth
12+ npm install @adminforth/facebook-oauth-adapter --save # for Facebook OAuth
1213```
1314
1415## Configuration
@@ -17,8 +18,8 @@ npm install @adminforth/google-oauth-adapter --save # for Google OAuth
1718
1819You need to get the client ID and client secret from your OAuth2 provider.
1920
20- For Google:
21- 1 . Go to the [ Google Cloud Console] ( https://console.cloud.google.com )
21+ #### For Google:
22+ 1 . Go to the [ Google Cloud Console] ( https://console.cloud.google.com ) and log in.
22232 . Create a new project or select an existing one
23243 . Go to ` APIs & Services ` → ` Credentials `
24254 . Create credentials for OAuth 2.0 client IDs
@@ -32,6 +33,20 @@ GOOGLE_OAUTH_CLIENT_ID=your_google_client_id
3233GOOGLE_OAUTH_CLIENT_SECRET=your_google_client_secret
3334```
3435
36+ #### For Facebook:
37+ 1 . Go to the [ Facebook Developers] ( https://developers.facebook.com/ )
38+ 2 . Go to ` My apps `
39+ 3 . Create a new project or select an existing one (choose Authenticate and request data from users with Facebook Login)
40+ 4 . Go to ` Use Cases ` - ` Authenticate and request data from users with Facebook Login ` -> ` Customize ` and add email permissions
41+ 5 . Go to ` App Settings ` -> ` Basic `
42+ 6 . Get App ID and App secret
43+ 7 . Add the credentials to your ` .env ` file:
44+
45+ ``` bash
46+ FACEBOOK_OAUTH_CLIENT_ID=your_facebook_client_id
47+ FACEBOOK_OAUTH_CLIENT_SECRET=your_facebook_client_secret
48+ ```
49+
3550### 2. Plugin Configuration
3651
3752Configure the plugin in your user resource file:
0 commit comments