Routes for authentication
ROQ provides a wrapper which adds these four routes into your application:
Path | Description |
---|---|
/api/auth/login | Secure redirect to the managed login page |
/api/auth/logout | Clears the session token from the cookies and invalidates active refresh tokens. |
/api/auth/session | Endpoint to check the validity of the session token |
/api/auth/callback | Handles the callback from the hosted login page after successful authentication |