JWTMiddleware
JWTMiddleware copied to clipboard
Change BasicJWTAuthenticatable usernameKey type
trafficstars
What are your thoughts on this change:
static var usernameKey: WritableKeyPath<Self, String> { get }
it is currently a KeyPath and not a WritableKeyPath.
This would make it match Vapors BasicAuthenticatable so that my model can conform to PasswordAuthenticatable and BasicJWTAuthenticatable
I like it!
Want to submit a PR?