Constructors
constructor
-
Parameters
-
databaseService: DatabaseService
-
-
-
data: User
Methods
comparePassword
- comparePassword(password: string): boolean
-
Parameters
Returns boolean
getProfile
- getProfile(): UserProfile
getProvider
- getProvider(): { providerId: undefined | "password" | "custom" | "anonymous" | "google.com" | "facebook.com" }
-
Returns { providerId: undefined | "password" | "custom" | "anonymous" | "google.com" | "facebook.com" }
-
providerId: undefined | "password" | "custom" | "anonymous" | "google.com" | "facebook.com"
getPublicProfile
- getPublicProfile(): UserProfile
setAdditionalData
- setAdditionalData(data: Record<string, unknown>): UserObject
-
Parameters
-
data: Record<string, unknown>
setOob
-
Parameters
-
Default value mode: UserOobMode = "none"
setProfilePrivately
- setProfilePrivately(props: string | string[]): UserObject
setProfilePublicly
- setProfilePublicly(props: string | string[]): UserObject
setSettings
- setSettings(data: Record<string, unknown>): UserObject
-
Parameters
-
data: Record<string, unknown>
updateClaims
- updateClaims(claims: Record<string, unknown>): UserObject
-
Parameters
-
claims: Record<string, unknown>
updateProfile
- updateProfile(data: UserEditableProfile): UserObject
-
Parameters
-
data: UserEditableProfile