-
Notifications
You must be signed in to change notification settings - Fork 228
Closed
Description
Hello,
I've noticed that the getCredentials
method exposed on the Auth0ContextInterface
react-native-auth0/src/hooks/Auth0Context.ts
Lines 66 to 73 in d1f7861
/** | |
* Retrieves the stored credentials, refreshing them if necessary. | |
* @param scope The scopes to request for the new access token (used during refresh). | |
* @param minTtl The minimum time-to-live (in seconds) required for the access token. | |
* @returns A promise that resolves with the user's credentials. | |
* @throws {AuthError} If credentials cannot be retrieved or refreshed. | |
*/ | |
getCredentials(scope?: string, minTtl?: number): Promise<Credentials>; |
doesn't match the implementation signature on
Auth0Provider
.react-native-auth0/src/hooks/Auth0Provider.tsx
Lines 148 to 154 in d1f7861
const getCredentials = useCallback( | |
async ( | |
scope?: string, | |
minTtl?: number, | |
parameters?: Record<string, unknown>, | |
forceRefresh?: boolean | |
) => { |
This causes a ts error when using the method with the extra params, that in my case are needed since the authentication was triggered with those extra params.
Metadata
Metadata
Assignees
Labels
No labels