Which SDK this is regarding: react-native-auth0
I saw code of refreshToken function in react-native-auth0
refreshToken(params: RefreshTokenParams): Promise<RefreshTokenResponse>;
export interface RefreshTokenResponse {
accessToken: string;
expiresIn: number;
idToken: string;
refreshToken?: string | undefined;
scope?: string | undefined;
tokenType: string;
}
What is refreshToken in interface RefreshTokenResponse ? is this new refreshToken after we use this funtion ?
hello @konrad.sopala , could you please help ?
jeff0
October 18, 2021, 11:18am
3
Hi @duong.tran2
Thank you for contacting Auth0 Community
You are correct, this is the new Refresh Token returned when the existing Access Token is refreshed. You can find more information about refresh tokens
refresh-tokens
token-rotation
Hope it helps
Thank you
Jeff
1 Like
Hello Jeff0,
It has “?” . That mean it is optional. When refreshToken function will return the new Refresh Token and when not ? thank you.
system
Closed
November 2, 2021, 3:46pm
5
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.