User
@firecms/core / User
Type Alias: User
Section titled “Type Alias: User”User =
object
Defined in: types/user.ts:13
This interface represents a user.
It has some of the same fields as a Firebase User.
Note that in the default implementation, we simply take the Firebase user
and use it as a FireCMS user, so that means that even if they are not mapped
in this interface, it contains all the methods of the former, such as delete,
getIdToken, etc.
Properties
Section titled “Properties”displayName
Section titled “displayName”
readonlydisplayName:string|null
Defined in: types/user.ts:21
The display name of the user.
readonlyemail:string|null
Defined in: types/user.ts:25
The email of the user.
getIdToken()?
Section titled “getIdToken()?”
optionalgetIdToken: (forceRefresh?) =>Promise<string>
Defined in: types/user.ts:44
Parameters
Section titled “Parameters”forceRefresh?
Section titled “forceRefresh?”boolean
Returns
Section titled “Returns”Promise<string>
isAnonymous
Section titled “isAnonymous”
readonlyisAnonymous:boolean
Defined in: types/user.ts:37
photoURL
Section titled “photoURL”
readonlyphotoURL:string|null
Defined in: types/user.ts:29
The profile photo URL of the user.
providerId
Section titled “providerId”
readonlyproviderId:string
Defined in: types/user.ts:33
The provider used to authenticate the user.
roles?
Section titled “roles?”
optionalroles:Role[]
Defined in: types/user.ts:42
Custom roles assigned to the user.
readonlyuid:string
Defined in: types/user.ts:17
The user’s unique ID, scoped to the project.