We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 659732a commit 98cd416Copy full SHA for 98cd416
adminforth/documentation/docs/tutorial/05-Plugins/11-oauth.md
@@ -40,6 +40,15 @@ Configure the plugin in your user resource file:
40
import OAuthPlugin from '@adminforth/oauth';
41
import AdminForthAdapterGoogleOauth2 from '@adminforth/google-oauth-adapter';
42
43
+declare global {
44
+ namespace NodeJS {
45
+ interface ProcessEnv {
46
+ GOOGLE_OAUTH_CLIENT_ID: string;
47
+ GOOGLE_OAUTH_CLIENT_SECRET: string;
48
+ }
49
50
+}
51
+
52
// ... existing resource configuration ...
53
54
plugins: [
@@ -51,6 +60,7 @@ plugins: [
60
redirectUri: 'http://localhost:3000/oauth/callback',
61
}),
62
],
63
64
emailField: 'email', // Required: field that stores the user's email
55
65
56
66
]
0 commit comments