fix types
This commit is contained in:
parent
e6d03cdc40
commit
96f6555127
@ -193,12 +193,12 @@ export interface OAuth2CodeAdapter {
|
||||
/**
|
||||
* Get user ID from a code object
|
||||
*/
|
||||
getUserId: (code: OAuth2Code) => string;
|
||||
getUserId: (code: OAuth2Code) => string | number;
|
||||
|
||||
/**
|
||||
* Get client ID from a code object
|
||||
*/
|
||||
getClientId: (code: OAuth2Code) => string;
|
||||
getClientId: (code: OAuth2Code) => string | number;
|
||||
|
||||
/**
|
||||
* Get scope from a code object
|
||||
@ -252,17 +252,17 @@ export interface OAuth2RefreshTokenAdapter {
|
||||
/**
|
||||
* Get user ID from token
|
||||
*/
|
||||
getUserId: (code: OAuth2RefreshToken) => string;
|
||||
getUserId: (token: OAuth2RefreshToken) => string | number;
|
||||
|
||||
/**
|
||||
* Get client ID from token
|
||||
*/
|
||||
getClientId: (code: OAuth2RefreshToken) => string;
|
||||
getClientId: (token: OAuth2RefreshToken) => string | number;
|
||||
|
||||
/**
|
||||
* Get scope from token
|
||||
*/
|
||||
getScope: (code: OAuth2RefreshToken) => string;
|
||||
getScope: (token: OAuth2RefreshToken) => string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user