frog_auth library

Functions

basicAuthentication<User extends Object>({required UserFromCredentials<User> retrieveUser}) → Middleware
A Basic authentication scheme.
bearerAuthentication<User extends Object>({required UserFromToken<User> retrieveUser}) → Middleware
A Bearer authentication scheme.

Typedefs

UserFromCredentials<User extends Object> = Future<User?> Function(RequestContext context, String username, String password)
UserFromToken<User extends Object> = Future<User?> Function(RequestContext context, String token)