Setup in the dashboard: User Authentication
signInWithWebstorio(returnTo?)
Start the sign-in flow. Redirects the browser to Webstorio OAuth; no return value.
Use on sign-in pages and “Sign in” buttons. If
getSession() already returns a user, redirect to getAuthConfig().redirectAfterSignIn instead of showing the button.
getSession()
Get the current visitor session, ornull if not signed in.
include) — the session cookie must be present.
getCurrentUser()
Shorthand forgetSession() then return user or null.
getAuthConfig()
Public auth settings for your site.signInPath for links to your sign-in page and redirectAfterSignIn when a signed-in visitor lands on the sign-in page.

