authenticateWithFirebaseUid method
to use this method first you need to add a custom provider for strapi with Firebase SDK enabled otherwise you'll recieve "This provider is disabled." response, go here https://yadunandan.xyz/authenticateWithFirebaseForStrapi to know how to add firebase as a authentication method, as of now it is the only method which is supported in authenticating with strapi
Implementation
Future<StrapiResponse> authenticateWithFirebaseUid({
required String firebaseUid,
}) async {
if (firebaseUid.isEmpty) {
throw StrapiException(
msg: "empty string cannot be passed as uid",
);
}
final response = await request("/auth/firebase/callback", params: {
"access_token": "$firebaseUid",
});
if (!response.failed) {
strapiToken = response.body.first["jwt"];
}
return response;
}