fix types

This commit is contained in:
Evert Prants 2022-03-08 18:59:43 +02:00
parent e6d03cdc40
commit 96f6555127
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 5 additions and 5 deletions

View File

@ -193,12 +193,12 @@ export interface OAuth2CodeAdapter {
/** /**
* Get user ID from a code object * Get user ID from a code object
*/ */
getUserId: (code: OAuth2Code) => string; getUserId: (code: OAuth2Code) => string | number;
/** /**
* Get client ID from a code object * Get client ID from a code object
*/ */
getClientId: (code: OAuth2Code) => string; getClientId: (code: OAuth2Code) => string | number;
/** /**
* Get scope from a code object * Get scope from a code object
@ -252,17 +252,17 @@ export interface OAuth2RefreshTokenAdapter {
/** /**
* Get user ID from token * Get user ID from token
*/ */
getUserId: (code: OAuth2RefreshToken) => string; getUserId: (token: OAuth2RefreshToken) => string | number;
/** /**
* Get client ID from token * Get client ID from token
*/ */
getClientId: (code: OAuth2RefreshToken) => string; getClientId: (token: OAuth2RefreshToken) => string | number;
/** /**
* Get scope from token * Get scope from token
*/ */
getScope: (code: OAuth2RefreshToken) => string; getScope: (token: OAuth2RefreshToken) => string;
} }
/** /**