Skip to content

Commit

Permalink
schedule proactive refreshes after code is exchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
cmatheson committed Aug 12, 2024
1 parent df328df commit a4cd121
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/create-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export async function createClient(

if (authenticationResponse) {
_authkitClientState = "AUTHENTICATED";
_scheduleAutomaticRefresh();
setSessionData(authenticationResponse, { devMode });
_onRefresh && _onRefresh(authenticationResponse);
onRedirectCallback({ state, ...authenticationResponse });
Expand Down

0 comments on commit a4cd121

Please sign in to comment.