Authentication
Advanced Topics
Authentication Routes

Routes for authentication

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

PathDescription
/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