Set session length, token duration, inactivity timeout, and sign-out redirects.
Configure how sessions work in the WorkOS dashboard under the Authentication section.

Review the redirect settings in the Redirect section of the dashboard.

Set a default sign-out redirect, which is the location users are redirected to after their session has been ended. Non-default sign-out redirects can be used as values to the return_to parameter of the Logout API to dynamically choose the final logout redirect location.
WorkOS supports using wildcard characters (*) in sign-out redirects to handle dynamic subdomains or variable ports during development.
The * symbol can be used as a wildcard for subdomains, subject to the following rules:
http: in production environments.https://*.sub.example.com will work, but https://sub.*.example.com will not).https://prefix-*-suffix.example.com).https://*.example.com will not match https://sub1.sub2.example.com).https://*.ngrok-free.app will not work).To support RFC 8252 (“OAuth 2.0 for Native Apps”) and local development, a wildcard may be used in place of the port number.
localhost and loopback IP addresses (e.g., 127.0.0.1).http://localhost:*/signed-out is valid.