Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const googleStrategy = new GoogleStrategy(
clientSecret: 'YOUR_CLIENT_SECRET',
redirectURI: 'https://example.com/auth/google/callback',
},
async ({ accessToken, tokens }) => {
async ({ request, tokens }) => {
// Get the user data from your DB or API using the tokens and profile
const profile = await GoogleStrategy.userProfile(tokens)
return User.findOrCreate({ email: profile.emails[0].value })
Expand Down