Return users to a localhost application after logout
Local development
Kinde · Pipe
KINDE_POST_LOGOUT_REDIRECT_URL is the Kinde environment variable for the URL users should reach after signing out. Register the same URL as an allowed logout redirect URL in Kinde.
Set this environment variable to the destination users should reach after logging out. The destination must also be registered in Kinde as an allowed logout redirect URL, and deployed environments should use their corresponding application URL.
KINDE_POST_LOGOUT_REDIRECT_URL=<post_logout_url>KINDE_POST_LOGOUT_REDIRECT_URL=http://localhost:3000Set the environment variable to the URL where users should land after signing out.
Local development
Staging deployments
Production deployments
It specifies the destination users are sent to after they log out of Kinde. For example, a local application can set it to http://localhost:3000.
Follow-up: What configuration is required for the redirect to work? The same destination must be included in Kinde's allowed logout redirect URLs.
It is an environment variable containing a URL, such as http://localhost:3000. The application uses that value as its post-logout destination.
Follow-up: How should production differ from local development? Replace the localhost URL with the deployed application's URL and register that URL in Kinde.
The URL must be listed under the application's allowed logout redirect URLs in Kinde. This restriction ensures the logout flow redirects only to an approved destination.
Follow-up: What is a common deployment mistake? Updating the application variable without updating Kinde's allowed logout redirect URL, or vice versa.
KINDE_POST_LOGIN_REDIRECT_URLKINDE_SITE_URLAllowed logout redirect URLslogoutRedirectUri