Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
🐛 Refresh token bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed May 30, 2019
1 parent a93af38 commit cb4ac46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rest/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const validateRefreshToken = async (token: string, locals: Locals) => {
const data = <User>await verifyToken(token, Tokens.REFRESH);
if (!data.id) throw new Error(ErrorCode.USER_NOT_FOUND);
const user = await getUser(data.id);
return await getLoginResponse(user);
return await postLoginTokens(user);
};

export const login = async (
Expand Down

0 comments on commit cb4ac46

Please sign in to comment.