# new UserId(id, providerId)
Creates a UserId
Parameters:
Name | Type | Description |
---|---|---|
id |
string | User ID. |
providerId |
string | Provider ID. |
- Source:
Methods
# (static) create(id) → {UserId}
Creates a single GetSocial user identifier.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | GetSocial user ID. |
- Source:
Returns:
New identifier.
- Type
- UserId
# (static) createForApp() → {UserId}
Creates a single GetSocial user identifier for the app.
- Source:
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. |
- Source:
Returns:
new identifier.
- Type
- UserId
# (static) currentUser() → {UserId}
Returns current user's ID
- Source:
Returns:
Current user ID.
- Type
- UserId