frandiox / vue-graphql-enterprise-boilerplate

A GraphQL ready, very opinionated Vue SPA template for Vue CLI 3
120 stars 20 forks source link

Auth0 error #31

Closed danielbehrendt closed 6 years ago

danielbehrendt commented 6 years ago

Signup via Auth0 works but if I try to login I always get an error:

Error: Not authorized. Could not get signing key: Unable to find a signing key that matches...

Any ideas?

frandiox commented 6 years ago

Hi! You also need to set up env variables for the server in server/.env. I think you might be missing AUTH0_DOMAIN there.

danielbehrendt commented 6 years ago

@frandiox Hi, I think I've setup everything correctly. VUE_APP_AUTH0_CLIENT_ID and VUE_APP_AUTH0_DOMAIN are configured.

frandiox commented 6 years ago

To be clear, there are 3 AUTH0 env variables:

The last 2 need to have the same value. The signing key is necessary for authenticating JWT (tokens) and for that the AUTH0_DOMAIN variable in the server needs to be set up.