refactor(api): change jwt generation call to use new function name

This commit is contained in:
parent 60e564781d
commit 5b368cf832
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -29,7 +29,7 @@ export default eventHandler(async (event) => {
'Account inactive!<br><a href="/activate/resend">Resend verification</a>?', 'Account inactive!<br><a href="/activate/resend">Resend verification</a>?',
}); });
} }
let tok = user.generateToken(useRuntimeConfig().jwt); let tok = user.generateJWT(useRuntimeConfig().jwt);
// setCookie(event, "rockfic_cookie", tok); // setCookie(event, "rockfic_cookie", tok);
return { return {
user, user,