mirror of
https://github.com/revanced/revanced-api.git
synced 2025-05-02 15:44:33 +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 {
|
fun newToken(): String = JWT.create()
|
||||||
val issuedAt = Instant.now()
|
|
||||||
|
|
||||||
return JWT.create()
|
|
||||||
.withIssuer(issuer)
|
.withIssuer(issuer)
|
||||||
.withIssuedAt(issuedAt)
|
.withExpiresAt(Instant.now().plus(validityInMin, ChronoUnit.MINUTES))
|
||||||
.withExpiresAt(issuedAt.plus(validityInMin, ChronoUnit.MINUTES))
|
|
||||||
.sign(Algorithm.HMAC256(jwtSecret))
|
.sign(Algorithm.HMAC256(jwtSecret))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user