Skip to content
Orvanov0.2.0

redirect_url_not_allowed

HTTP status: 400 · Code: redirect_url_not_allowed

The redirect URL is malformed, or its host or scheme is not a platform of the project.

A redirect URL for an email link is malformed, or its host or scheme isn’t one of the project’s platforms. Orvano only sends people back to places you registered, so a link can’t send them to a stranger’s site.

Add a platform for the URL in the console under Platforms: a Web platform with its hostname, or your app’s scheme for a mobile deep link. Then send the full URL, including the scheme.

Every SDK throws one error type for a failed call. Match on its code, which is always redirect_url_not_allowed for this error, never on the message.

import { ErrorCode, OrvanoError } from '@orvano/js'
try {
// your Orvano call
} catch (error) {
if (error instanceof OrvanoError && error.code === ErrorCode.redirectUrlNotAllowed) {
// handle redirect_url_not_allowed
} else {
throw error
}
}

The error also carries the HTTP status (400), a message, and a request ID. Quote the request ID when you report a problem: the server logs it with the failure. See Errors for how errors work in every SDK, or every error code.