Skip to content

Commit

Permalink
set userinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwi committed Jan 10, 2024
1 parent a7e227a commit 9f0d43e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ FIREBASE_MEASUREMENT_ID=<foo>
FIREBASE_VAPID_KEY=<foo>

#OAUTH Settings
AUTH_SECRET=<foo> # See https://authjs.dev/reference/core/errors/#missingsecret
OAUTH_CLIENT_ID=<foo>
OAUTH_SECRET=<foo>
OAUTH_TOKEN_URI=https://id.fabric.swire.io/oauth/token
OAUTH_AUTH_URI=https://id.fabric.swire.io/login/oauth/authorize
OAUTH_REDIRECT_URI=https://<foo>.ngrok-free.app/callback
OAUTH_REDIRECT_URI=https://<foo>.ngrok-free.app/callback
OAUTH_USERINFO_URI=https://fabric.swire.io/subscriber/info
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import('@auth/express').then(({ ExpressAuth }) => {
clientId: process.env.OAUTH_CLIENT_ID,
clientSecret: process.env.OAUTH_SECRET,
token: process.env.OAUTH_TOKEN_URI,
userinfo: process.env.OAUTH_REDIRECT_URI,
userinfo: process.env.OAUTH_USERINFO_URI,
profile(profile) {
console.log('$$$$$$', profile);
return {
Expand Down

0 comments on commit 9f0d43e

Please sign in to comment.