Advanced Topics
Authentication Routes

Routes for Authentication

ROQ provides a wrapper that adds these four routes into your application:

/api/auth/loginSecure redirect to the managed login page
/api/auth/logoutClears the session token from the cookies and invalidates active refresh tokens.
/api/auth/sessionEndpoint to check the validity of the session token
/api/auth/callbackHandles the callback from the hosted login page after successful authentication