mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
fix: sign-in by refresh token
This commit is contained in:
parent
58dc6adc5a
commit
e103240f12
@ -153,7 +153,7 @@ const SignIn = () => {
|
||||
|
||||
if (!isReady) return;
|
||||
|
||||
if (query?.access_token && query?.refresh_token) {
|
||||
if (query?.refresh_token) {
|
||||
(async () => {
|
||||
const refresh_token = query.refresh_token as string;
|
||||
const { data, error } = await supabase.auth.refreshSession({ refresh_token });
|
||||
|
Loading…
x
Reference in New Issue
Block a user