Skip to content

Commit

Permalink
fix: Add missing auth realm
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jul 8, 2024
1 parent d4ac471 commit a6008a2
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ internal class AuthService private constructor(
val configureSecurity: Application.() -> Unit = {
install(Authentication) {
jwt("jwt") {
verifier(
JWT.require(Algorithm.HMAC256(jwtSecret))
.withIssuer(issuer)
.build(),
)
validate { credential -> JWTPrincipal(credential.payload) }
realm = "ReVanced"

verifier(JWT.require(Algorithm.HMAC256(jwtSecret)).withIssuer(issuer).build())
}

digest("auth-digest") {
Expand Down

0 comments on commit a6008a2

Please sign in to comment.