You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are examples of calling signIn() or signOut() from the browser, but I need to call this from the server in SSR context. Is this possible somehow?
How to reproduce 鈽曪笍
n/a
Contributing 馃檶馃徑
Yes, I am willing to help answer this question in a PR
The text was updated successfully, but these errors were encountered:
Not officially, currently. @auth/core could potentially get support for this, together with the skipCSRFCheck option we introduced for framework authors, as many frameworks support sign-in functionality via SSR'd forms.
@balazsorban44 my use case would be to automatically forward users to the oauth login page when they attempt to access a page that is restricted for logged in users only. In SvelteKit this can be done by returning a 302 from the load function.
Question 馃挰
There are examples of calling
signIn()
orsignOut()
from the browser, but I need to call this from the server in SSR context. Is this possible somehow?How to reproduce 鈽曪笍
n/a
Contributing 馃檶馃徑
Yes, I am willing to help answer this question in a PR
The text was updated successfully, but these errors were encountered: