Reference Source
public class | source

AuthenticationState

You can directly use an instance of this class. AuthState

Class to hold a temporary authentication state for the user. Only used to be able to retrieve the user ID rather quickly since asyncstorage and database calls are asynchronous.

Constructor Summary

Public Constructor
public

Creates an instance of AuthenticationState

Member Summary

Public Members
public

Method Summary

Public Methods
public

Returns the current user's id.

public

Sets the current user id.

Public Constructors

public constructor() source

Creates an instance of AuthenticationState

Public Members

public currentUserID: * source

Public Methods

public getCurrentUserID(): string source

Returns the current user's id.

Return:

string

The current user's id

public setCurrentUserID(id: string) source

Sets the current user id.

Params:

NameTypeAttributeDescription
id string

The current user's id