From 0eb0d1814adb747833baf7229857001da003c5b0 Mon Sep 17 00:00:00 2001 From: Jan Tennert Date: Fri, 14 Mar 2025 16:07:19 +0100 Subject: [PATCH] Check for hashes & PKCE codes directly after WASM is loaded --- .../kotlin/io/github/jan/supabase/auth/setupPlatform.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Auth/src/wasmJsMain/kotlin/io/github/jan/supabase/auth/setupPlatform.kt b/Auth/src/wasmJsMain/kotlin/io/github/jan/supabase/auth/setupPlatform.kt index 995eb0f86..df5501248 100644 --- a/Auth/src/wasmJsMain/kotlin/io/github/jan/supabase/auth/setupPlatform.kt +++ b/Auth/src/wasmJsMain/kotlin/io/github/jan/supabase/auth/setupPlatform.kt @@ -37,6 +37,8 @@ actual fun Auth.setupPlatform() { window.history.replaceState(null, window.document.title, newURL); } + checkForHash() + checkForPCKECode() if(IS_BROWSER) { window.onhashchange = { checkForHash()