File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -263,9 +263,9 @@ export class AWSWebCore implements WebCoreService {
263
263
{ ...body }
264
264
) ;
265
265
const refreshToken = {
266
- ...response . data ,
267
266
identityToken : response . data . identityToken || cached . identityToken ,
268
267
identityPoolId : cached . identityPoolId ,
268
+ ...( response . data . Token ? response . data . Token : response . data ) ,
269
269
} ;
270
270
this . logger . info ( 'success to refresh token' ) ;
271
271
return await this . buildCredentialsByToken ( refreshToken ) ;
Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ export interface LemonOAuthToken {
51
51
* The access token associated with the token (optional).
52
52
*/
53
53
accessToken ?: string ;
54
+ /**
55
+ * The access token associated with the token (optional).
56
+ */
57
+ Token ?: LemonOAuthToken ;
54
58
}
55
59
56
60
/**
You can’t perform that action at this time.
0 commit comments