-
Notifications
You must be signed in to change notification settings - Fork 960
Added ability to retry unauthorized requests #8351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
@@ -34,6 +34,7 @@ export class RESTTransport implements DataConnectTransport { | |||
private _serviceName: string; | |||
private _accessToken: string | null = null; | |||
private _authInitialized = false; | |||
private _lastToken: string | null = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realized I forgot to check for a changed token in Android! I'll go ahead and implement that.
Made sure that any time the server responds with unauthenticated, we do a
forceToken
refresh and retry as long as the token is new.