'Flutter skip firebase signin when creating new user with email and password

I m recently coding an app, where i use firebase as backend.

I created a method to sign up with firebase but I dont want it to sign in with the new user recently created. Is it possible to keep firebase auth signed in with the current user who adds the new user?



Solution 1:[1]

Is it possible to keep firebase auth signed in with the current user who adds the new user?

With the clients SDKs/plugins (FlutterFire, JavaScript SDK, etc.) this is not possible.

One way is to use the Admin SDK to create your users. For example you can create a Callable Cloud Function which creates the users and which is called by the end-user from the front-end.

I've written an article that details the entire approach with the corresponding code.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1