Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handleSilentRefresh does not start the checkAccessToken loop #119

Closed
AndrewPenry opened this issue Oct 6, 2022 · 3 comments
Closed

handleSilentRefresh does not start the checkAccessToken loop #119

AndrewPenry opened this issue Oct 6, 2022 · 3 comments

Comments

@AndrewPenry
Copy link

Hi,

I also posted about this in discord. handleSilentRefresh never gets the ball rolling on checkAccessToken.

Here is the diff that solved my problem:

diff --git a/node_modules/lucia-sveltekit/client.js b/node_modules/lucia-sveltekit/client.js
index cecee87..5c5d82b 100644
--- a/node_modules/lucia-sveltekit/client.js
+++ b/node_modules/lucia-sveltekit/client.js
@@ -94,6 +94,8 @@ export const handleSilentRefresh = (errorHandler = () => { }) => {
             }
         }, 5000);
     };
+    checkAccessToken();
+
     const refresh = async (session) => {
         if (!session)
             return;

This issue body was partially generated by patch-package.

@pilcrowonpaper
Copy link
Member

I have no idea how I missed that, thanks for pointing that out. Will be fixed with v0.10.0 (which might take a while)

@pilcrowonpaper
Copy link
Member

I'll fix this in a separate update if v0.10.0 is going to take some time to finish

@pilcrowonpaper
Copy link
Member

Fixed with v0.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants