Logo-amall

resetPassword: The value of "options.redirectTo" is not allowed.

Last active 5 days ago

5 replies

0 views

  • SI

    On our Nhost Pro Account when calling

    nhostClient.auth.resetPassword({
            email,
            options: {
              redirectTo: "/reset-password",
            },
          })
    

    where getting back

    {"status":400,"message":"The value of \"options.redirectTo\" is not allowed.","error":"invalid-request"}
    

    I can see that the value is added to the client url just fine in the request body

    options: {
      "redirectTo": "{clientUrl}/reset-password"
    }
    

    Using it this way also works fine in local development but not on our nhost cloud environments (staging / production). Any idea why the string value isn't getting accepted in this case?
    Thanks!

  • NU

    what is your project's subdomain?

  • NU

    and what version of the CLI are you currently using?

  • SI

    nhost subdomain is: cqbijggbsetplxkrqjnl
    and the cli seems to be Nhost CLI v0.8.23

  • SI

    just upgrading to v0.9.1

Last active 5 days ago

5 replies

0 views