grand-stack-seed
grand-stack-seed copied to clipboard
token not set in local storage when registering
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 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.