mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
fix: 修复偶尔下载证书报未授权的错误
This commit is contained in:
@@ -199,6 +199,12 @@ export class LoginService {
|
||||
return this.generateToken(info);
|
||||
}
|
||||
|
||||
writeTokenCookie(ctx:any,token: { expire: any; token: any }) {
|
||||
ctx.cookies.set("certd_token", token.token, {
|
||||
maxAge: 1000 * token.expire
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 生成token
|
||||
|
||||
Reference in New Issue
Block a user