authenticate method Null safety

  1. @override
Future<AuthToken> authenticate(
  1. AuthPayload payload
)
override

Authenticate with the backend

Implementation

@override
Future<AuthToken> authenticate(AuthPayload payload) async {
  final credentials = payload.credentials!;
  return post(credentials);
}