forked from Cookies_Github_mirror/AquaDX
[+] Extend jwt auth block
This commit is contained in:
@@ -72,4 +72,6 @@ class JWT(
|
||||
}
|
||||
|
||||
fun auth(token: Str) = parse(token) ?: (400 - "Invalid token")
|
||||
|
||||
final inline fun auth(token: Str, block: (AquaNetUser) -> Any) = block(auth(token))
|
||||
}
|
||||
Reference in New Issue
Block a user