mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-10 21:36:18 +00:00
chore: Remove unnecessary JWT token field
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user