mirror of
https://github.com/usbharu/Hideout.git
synced 2026-10-11 06:01:28 +00:00
test: リフレッシュトークンのテストを追加
This commit is contained in:
@@ -35,7 +35,7 @@ fun Application.configureSecurity(
|
||||
acceptLeeway(3)
|
||||
}
|
||||
validate { jwtCredential ->
|
||||
if (jwtCredential.payload.getClaim("username").asString().isNotEmpty()) {
|
||||
if (jwtCredential.payload.getClaim("username")?.asString().isNullOrBlank().not()) {
|
||||
JWTPrincipal(jwtCredential.payload)
|
||||
} else {
|
||||
null
|
||||
|
||||
Reference in New Issue
Block a user