Instance Method
login(_:)
Authenticates the supplied instance for this request.
func login<A>(_ instance: A) where A : Authenticatable
Discussion
Instances are keyed by their static type, so authenticating more than one type at a time is supported — a bearer token authenticator can log in both the token and the user it belongs to.