diff --git a/src/create-client.ts b/src/create-client.ts index f9ead7c..3361c22 100644 --- a/src/create-client.ts +++ b/src/create-client.ts @@ -193,6 +193,7 @@ export async function createClient( if (authenticationResponse) { _authkitClientState = "AUTHENTICATED"; + _scheduleAutomaticRefresh(); setSessionData(authenticationResponse, { devMode }); _onRefresh && _onRefresh(authenticationResponse); onRedirectCallback({ state, ...authenticationResponse });