File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ export interface AuthenticateOptions extends passport.AuthenticateOptions {
38
38
*/
39
39
loginHint ?: string
40
40
41
+ /**
42
+ * ID Token Hint to use for the authorization request. It is ignored for token
43
+ * endpoint requests.
44
+ */
45
+ idTokenHint ?: string
46
+
41
47
/**
42
48
* OAuth 2.0 Rich Authorization Requests to use for the authorization request.
43
49
* It is ignored for token endpoint requests.
@@ -260,6 +266,10 @@ export class Strategy implements passport.Strategy {
260
266
params . set ( 'login_hint' , options . loginHint )
261
267
}
262
268
269
+ if ( options ?. idTokenHint ) {
270
+ params . set ( 'id_token_hint' , options . idTokenHint )
271
+ }
272
+
263
273
if ( options ?. resource ) {
264
274
setResource ( params , options . resource )
265
275
}
You can’t perform that action at this time.
0 commit comments