authApi function

Future<RecordModel> authApi(
  1. Map<String, dynamic> payload
)

Implementation

Future<RecordModel> authApi(Map<String, dynamic> payload) async {
  final authData = await pocketBase.collection("users").create(body: payload);
  print(authData.id);
  saveUserID(authData.id);
  return authData;
}