authenticate abstract method
Authenticates against the server.
This is designed with package:angel_auth in mind.
The type is appended to the authEndpoint, ex. local becomes /auth/local.
The given credentials are sent to server as-is; the request body is sent as JSON.
Implementation
Future<AngelAuthResult> authenticate({
required String type,
credentials,
String authEndpoint = '/auth',
});