-
-
Notifications
You must be signed in to change notification settings - Fork 5
Authentication Anonymous Authentication
The contents of this page are based on the original Firebase Documentation
You can use Firebase Authentication to create and use temporary anonymous accounts to authenticate with Firebase. These temporary anonymous accounts can be used to allow users who haven't yet signed up to your app to work with data protected by security rules. If an anonymous user decides to sign up to your app, you can link their sign-in credentials to the anonymous account so that they can continue to work with their protected data in future sessions.
- If you haven't yet connected your app to your Firebase project, do so from the Firebase console.
- Enable anonymous auth:
- In the Firebase console, open the Auth section.
- On the Sign-in Methods page, enable the Anonymous sign-in method.
When a signed-out user uses an app feature that requires authentication with Firebase, sign in the user anonymously by completing the following steps:
auth.signInAnonymously(onSignedIn);
private function onSignedIn(error:AuthError):void {
var user:FirebaseUser = auth.currentUser;
trace(user.isAnonymous); //true
});
Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.
Project setup
Analytics
Authentication
Dynamic Links
Google Sign In
Firestore
- Configuring the ANE
- Get Started
- Add and Manage Data
- Query Data
- Get Data
- Get Realtime Updates
- Perform Simple and Compound Queries
- Order and Limit Data
- Paginate Data
Messaging
One Signal
Performance
Remote Config
Storage
- Configuring the ANE
- Get Started
- Create a Reference
- Upload Files
- Download Files
- Use File Metadata
- Delete Files
Crashlytics
Vision
- Detect faces
- Scan barcodes
- Label images
- Recognize landmarks
- Natural Language
- Custom Models
External Links