╾━╤デ╦︻(▀̿Ĺ̯▀̿ ̿)
╾━╤デ╦︻(▀̿Ĺ̯▀̿ ̿)
Explore posts from servers
TTCTheo's Typesafe Cult
Created by ╾━╤デ╦︻(▀̿Ĺ̯▀̿ ̿) on 1/3/2023 in #questions
How to refetch(refresh) next-auth session manually on the client side?
updated session is returned in the network tab, but the session state doesn't update
7 replies
TTCTheo's Typesafe Cult
Created by ╾━╤デ╦︻(▀̿Ĺ̯▀̿ ̿) on 1/3/2023 in #questions
How to refetch(refresh) next-auth session manually on the client side?
I am returning the session data. The updated session is fetched when I run getSession(). But the session state stored by next auth's session provider that wraps the app doesn't update. It only updates when I refresh the whole page(app), or on a windowRefocusEvent. There's no programmatic way listed on next auth's docs to update the session manually.
7 replies
TTCTheo's Typesafe Cult
Created by ╾━╤デ╦︻(▀̿Ĺ̯▀̿ ̿) on 1/3/2023 in #questions
How to refetch(refresh) next-auth session manually on the client side?
but calling getSession doesn't work
7 replies
TTCTheo's Typesafe Cult
Created by ╾━╤デ╦︻(▀̿Ĺ̯▀̿ ̿) on 1/3/2023 in #questions
How to refetch(refresh) next-auth session manually on the client side?
7 replies