Get current user (Firebase Auth)
Retrieve current Firebase Auth user info.
Retrieve current Firebase Auth user info.
If the retrieve operation is successful and a current user exists, the first output is triggered and the Firebase User object returned.
If the retrieve operation is successful but there's no currently authenticated user, the second output is triggered.
If the operation fails, the third output is triggered.
To use this flow, your app must have Firebase configured in your project.

Input arguments

Label
Key
Type
Required?
Default
Description

Output arguments

Number of outputs: 3
Label
Key
Type
Description
Current user
currentUser
Object
Firebase User object for current user
  • Display name
currentUser.displayName
String
User display name
  • Email
currentUser.email
String
User email
  • Phone number
currentUser.phoneNumber
String
User phone number
  • Photo URL
currentUser.photoURL
String
User photo URL
  • Provider ID
currentUser.providerId
String
Authentication provider ID
  • UID
currentUser.uid
String
Unique ID of the user
  • Email verified
currentUser.emailVerified
Boolean
Is user email verified
  • Is anonymous
currentUser.isAnonymous
Boolean
Is user anonymous
  • Metadata
currentUser.metadata
Object
User metadata
  • Multi factor
currentUser.multiFactor
Object
User multifactor related properties
  • Provider data
currentUser.providerData
Array
An array of user profile information from various sources
  • Refresh token
currentUser.refreshToken
String
User refresh token (used to refresh the auth session)
  • Tenant ID
currentUser.tenantId
String
User tenant ID

Events

No events.

Errors

Label
Code
Description
Retrieving current user failed
retrieveFailed
Thrown if retrieving the current user failed.
Export as PDF
Copy link