Skip to content

Commit 98cd416

Browse files
committed
docs: add declare to oauth doc
1 parent 659732a commit 98cd416

File tree

1 file changed

+10
-0
lines changed
  • adminforth/documentation/docs/tutorial/05-Plugins

1 file changed

+10
-0
lines changed

adminforth/documentation/docs/tutorial/05-Plugins/11-oauth.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ Configure the plugin in your user resource file:
4040
import OAuthPlugin from '@adminforth/oauth';
4141
import AdminForthAdapterGoogleOauth2 from '@adminforth/google-oauth-adapter';
4242

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+
4352
// ... existing resource configuration ...
4453

4554
plugins: [
@@ -51,6 +60,7 @@ plugins: [
5160
redirectUri: 'http://localhost:3000/oauth/callback',
5261
}),
5362
],
63+
5464
emailField: 'email', // Required: field that stores the user's email
5565
}),
5666
]

0 commit comments

Comments
 (0)