diff --git a/server/api/auth/login.post.ts b/server/api/auth/login.post.ts
index 32f64d8..e37c190 100644
--- a/server/api/auth/login.post.ts
+++ b/server/api/auth/login.post.ts
@@ -29,7 +29,7 @@ export default eventHandler(async (event) => {
'Account inactive!
Resend verification?',
});
}
- let tok = user.generateToken(useRuntimeConfig().jwt);
+ let tok = user.generateJWT(useRuntimeConfig().jwt);
// setCookie(event, "rockfic_cookie", tok);
return {
user,