I updated [email protected]
to [email protected]
for okta signin(reactjs). After that I am getting the following errors:
[next-auth][error][SIGNIN_OAUTH_ERROR] https://next-auth.js.org/errors#signin_oauth_error only valid absolute URLs can be requested
Please anyone help me get out of this.
Make sure that your okta issuer looks like this:
https://{your_okta_domain}.okta.com/oauth2/default
Also if you are using it in localhost, in your .env file make sure that you store this variable without enclosing it in "". So instead of storing the value as:
OKTA_ISSUER = "my_okta_issuer"
use instead:
OKTA_ISSUER = my_okta_issuer
It took me a day to figure that out, but now it works.