Closed anthonycastelli closed 4 years ago
I think this is because it's inside the private ModelAuthenticator<User>
type - I don't know if this is a deliberate decision or not
Yeah, that's what I assume as well, but figured I would create a ticket and have @tanner0101 have a look at it in case there is something I am missing.
You can cast it as a BasicAuthenticator
to get access to those methods. But it's meant to be used as a middleware:
public protocol Authenticator: Middleware { }
This guide has more info: https://docs.vapor.codes/4.0/authentication/#fluent
When trying to use the
method, the
ModelAuthenticator
is not returned correctly making the ability to authenticate a user not possible. The method inModelAuthenticator
is not found.