mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
fix: cookie setting by only setting on admin routes
This commit is contained in:
@@ -121,6 +121,7 @@ export class AuthController extends Controller {
|
||||
const claims = c.get("auth")?.user;
|
||||
if (claims) {
|
||||
const { data: user } = await this.userRepo.findId(claims.id);
|
||||
await this.auth.authenticator?.requestCookieRefresh(c);
|
||||
return c.json({ user });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user