fetchAuthenticatableByUsername method

FutureOr<Authenticatable> fetchAuthenticatableByUsername (AuthServer server, String username)

Returns an Authenticatable for an username.

This method must return an instance of Authenticatable if one exists for username. Otherwise, it must return null.

If overriding this method, every property declared by Authenticatable must be non-null in the return value.

server is the AuthServer invoking this method.

Implementation

FutureOr<Authenticatable> fetchAuthenticatableByUsername(
    AuthServer server, String username);