Skip to content

v0.9.0

Compare
Choose a tag to compare
@calebkleveter calebkleveter released this 07 Dec 14:49
· 14 commits to master since this release
466838e

Type Less, Type Less

Removed the Status generic type from PermissionsMiddleware because we can get that type information from the Payload generic type.

We also create a static String.payloadKey value so the key where the JWT payload is stored is type safe.

In the JWTVerificationMiddleware, if an Authorization header is not found, status code 402 (Unauthorized) is returned instead of 400 (Bad Request).