refresh token after initial login
This commit is contained in:
parent
7c8b96863b
commit
72586e9714
1 changed files with 5 additions and 0 deletions
|
|
@ -304,6 +304,11 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
|
|||
changed: [],
|
||||
});
|
||||
|
||||
setTimeout(
|
||||
() => this._refreshSessions(),
|
||||
(this.getExpirationTimeMs(session.accessToken) * 2) / 3,
|
||||
);
|
||||
|
||||
return session;
|
||||
} catch (e) {
|
||||
window.showErrorMessage(`Sign in failed: ${e}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue