grand-stack-seed icon indicating copy to clipboard operation
grand-stack-seed copied to clipboard

token not set in local storage when registering

Open tmoores opened this issue 5 years ago • 1 comments

clicking [Register] on http://localhost:xxx/Register yields: JsonWebTokenError: jwt malformed trace reveals jwtString is NULL as it is not present in the header. Login.js sets this:

<Mutation mutation={SIGN_IN}>
  {(Login, { data }) => {
    if (data && !isNil(data.Login)) {
      localStorage.setItem("token", data.Login);
      return <Redirect to={{ pathname: "/" }} />;
    }

but no corresponding localStorage.setItem("token", ...) evident resulting from register, error occurs before write in neo4j

tmoores avatar May 09 '19 19:05 tmoores

@tmoores did you end up fixing this? I'm getting the same error. From what I can see, it looks like jwt is never used inside resolvers.js in the server directory.

jkhaui avatar Feb 22 '20 02:02 jkhaui