mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-11 13:56:17 +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 {
|
fun newToken(): String = JWT.create()
|
||||||
val issuedAt = Instant.now()
|
.withIssuer(issuer)
|
||||||
|
.withExpiresAt(Instant.now().plus(validityInMin, ChronoUnit.MINUTES))
|
||||||
return JWT.create()
|
.sign(Algorithm.HMAC256(jwtSecret))
|
||||||
.withIssuer(issuer)
|
|
||||||
.withIssuedAt(issuedAt)
|
|
||||||
.withExpiresAt(issuedAt.plus(validityInMin, ChronoUnit.MINUTES))
|
|
||||||
.sign(Algorithm.HMAC256(jwtSecret))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user