File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ function oAuthPluginServer(
161161 let users : PaginatedDocs < User >
162162 try {
163163 // Get the userinfo
164- info = await options . userinfo ?.( accessToken )
164+ info = await options . userinfo ?.( accessToken , refreshToken )
165165 if ( ! info ) throw new Error ( 'Failed to get userinfo' )
166166
167167 // Match existing user
Original file line number Diff line number Diff line change @@ -32,7 +32,10 @@ export interface oAuthPluginOptions extends StrategyOptions {
3232 authorizePath ?: string
3333
3434 /** Map an authentication result to a user */
35- userinfo : ( accessToken : string ) => Promise < {
35+ userinfo : (
36+ accessToken : string ,
37+ refreshToken ?: string
38+ ) => Promise < {
3639 /** Unique identifier for the linked account */
3740 sub : string
3841 /** Unique identifier for the linked account */
You can’t perform that action at this time.
0 commit comments