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.
Why it happens
Section titled “Why it happens”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.
How to fix
Section titled “How to fix”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.
Catch it in your code
Section titled “Catch it in your code”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 }}import 'package:orvano_flutter/orvano_flutter.dart'; // or orvano_dart on a server
try { // your Orvano call} on OrvanoException catch (error) { if (error.code != ErrorCode.redirectUrlNotAllowed) rethrow; // handle redirect_url_not_allowed}using Orvano;
try{ // your Orvano call}catch (OrvanoException error) when (error.Code == ErrorCode.RedirectUrlNotAllowed){ // handle redirect_url_not_allowed}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.