Getting started
Login flow
How the SDK builds the login URL and redirects the browser.
1 min read
When there is no active session, the SDK sends the browser to the platform login.
The URL built by the SDK
text
{baseUrl}/api/decsuite/auth/login?backurl=<current url encoded>The SDK reports the current page in backurl so the platform can use it on
return.
Declared facts
- The SDK only builds the login URL and redirects the browser. What the
platform does with
backurlafter login is defined by the platform. - When the page loads with an active session,
requireUser()returns the user profile.
Next step
Checking the session
Read the current user from the session.
