Skip to content

Commit c4741a5

Browse files
committed
add expired token
1 parent b5d166f commit c4741a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/modules/auth/usecase/usecase.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class Usecase {
2020
Translate('login_failed', {})
2121
)
2222

23-
const access_token = this.jwt.Sign({ app: this.config.app.name })
23+
const access_token = this.jwt.Sign({ app: this.config.app.name }, {
24+
expiresIn: '1d'
25+
})
2426
return {
2527
access_token,
2628
}

0 commit comments

Comments
 (0)