Redirect URLs
Here are the steps to determine your application's Redirect URL:
Find your app's domain. For development, this is usually localhost eg.
http://localhost:3000
Determine the callback path for the OAuth library you're using. For example, if using the
next-auth
package, this is/api/auth/callback/keyp
.You may need multiple redirect urls for both testing and production. Here's a typical example set:
- http://localhost:3000/api/auth/callback/keyp
- https://ready-player-one.vercel.app/api/auth/callback/keyp
- http://app.example.com/api/auth/callback/keyp
What is a Redirect URL
A redirect URL is a callback URL that the OAuth2.0 provider (Keyp) uses to redirect the user back to your website after authentication. It is a critical component of the OAuth2.0 flow as it helps protect client credentials and ensure secure access token exchange.
Going Live
When you're ready to go live, you should create a separate client for production use only.
Production applications must use https://
for Redirect URLs.