Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnauthorizedError: jwt issuer invalid. expected: undefined #32

Closed
dmongit opened this issue Jul 19, 2017 · 6 comments
Closed

UnauthorizedError: jwt issuer invalid. expected: undefined #32

dmongit opened this issue Jul 19, 2017 · 6 comments

Comments

@dmongit
Copy link

dmongit commented Jul 19, 2017

I followed instructions, and even tried changes shown in issue #30 because I was initially receiving the invalid audience error. Now I'm getting the invalid issuer error when I authenticate and try to hit a protected API. I'm using this example for my app: https://auth0.com/blog/adding-authentication-to-react-native-using-jwt/

Sign up and Login seem to work (aside from errors when I try to sign up the same user twice and try to login twice).

Any ideas?

I think the only difference is that my react-native app that uses this API as an end point fetches with my local IP instead of localhost.

Thanks!

@dmongit
Copy link
Author

dmongit commented Jul 20, 2017

I'm not entirely sure how I resolved this. But, I got it working so it looks like it was something on my end. I changed the issuer to anything else. I changed my issuer to http://something.com and my username and password are both something in the user object. I'm not 100% if I changed anything else relevant b/c I was multitasking.

@dmongit dmongit closed this as completed Jul 20, 2017
@josephkandi
Copy link

I get the same error. The error will go away when i remove the issuer. Is the issuer not supposed to be validated as well?

@dearamerican
Copy link

Have the same question! Is the issuer not supposed to be validated? Works for me when I remove it, but that doesn't seem like it should be the solution?

@dearamerican
Copy link

Ah, here it is: issuer should be

`https://${process.env.AUTH0_DOMAIN}/`

if you just put ${process.env.AUTH0_DOMAIN} it will remain broken.

@stephanebruckert
Copy link

In my case I forgot .eu in my domain name

@Nabhag8848
Copy link

Ah, here it is: issuer should be

`https://${process.env.AUTH0_DOMAIN}/`

if you just put ${process.env.AUTH0_DOMAIN} it will remain broken.

Thanks @dearamerican it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants