mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
chore: Remove unnecessary JWT token field
This commit is contained in:
parent
2d85ce17f6
commit
96bcd7719a
@ -41,13 +41,8 @@ internal class AuthenticationService private constructor(
|
||||
}
|
||||
}
|
||||
|
||||
fun newToken(): String {
|
||||
val issuedAt = Instant.now()
|
||||
|
||||
return JWT.create()
|
||||
.withIssuer(issuer)
|
||||
.withIssuedAt(issuedAt)
|
||||
.withExpiresAt(issuedAt.plus(validityInMin, ChronoUnit.MINUTES))
|
||||
.sign(Algorithm.HMAC256(jwtSecret))
|
||||
}
|
||||
fun newToken(): String = JWT.create()
|
||||
.withIssuer(issuer)
|
||||
.withExpiresAt(Instant.now().plus(validityInMin, ChronoUnit.MINUTES))
|
||||
.sign(Algorithm.HMAC256(jwtSecret))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user