UserId

UserId

# new UserId(id, providerId)

Creates a UserId
Parameters:
Name Type Description
id string User ID.
providerId string Provider ID.

Methods

# (static) create(id) → {UserId}

Creates a single GetSocial user identifier.
Parameters:
Name Type Description
id string GetSocial user ID.
Returns:
New identifier.
Type
UserId

# (static) createForApp() → {UserId}

Creates a single GetSocial user identifier for the app.
Returns:
New identifier
Type
UserId

# (static) createWithProvider(providerId, id) → {UserId}

Creates a single identity user identifier for giver provider ID.
Parameters:
Name Type Description
providerId string custom identity provider ID.
id string identity user ID.
Returns:
new identifier.
Type
UserId

# (static) currentUser() → {UserId}

Returns current user's ID
Returns:
Current user ID.
Type
UserId