Skip to content

Commit

Permalink
Merge pull request #171 from asgardeo/remove_is_auth_refreshaccesstoken
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored Jul 17, 2024
2 parents 4376b16 + 0372b3f commit 50e26e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ export class AsgardeoSPAClient {
}

/**
* This method checks if the SDK is initialized and the user is authenticated.
*
* This method checks if the SDK is initialized and the user is authenticated.
*
* @param validateAuthentication - should user's authenticated status be checked as part of validation
*
* @return {Promise<boolean>} - A Promise that resolves with `true` if the SDK is initialized and the
* user is authenticated.
*
Expand Down Expand Up @@ -917,7 +919,7 @@ export class AsgardeoSPAClient {
* @preserve
*/
public async refreshAccessToken(): Promise<BasicUserInfo | undefined> {
await this._validateMethod();
await this._validateMethod(false);

return this._client?.refreshAccessToken();
}
Expand Down

0 comments on commit 50e26e4

Please sign in to comment.