Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/godot/player-authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ else:

<ScopeBadges scope='players' read write />

You can also change a player's email with the `Talo.player_auth.change_email()` function - just pass in their current password and a new email.
You can change a player's email with the `Talo.player_auth.change_email()` function - just pass in their current password and a new email.

## Changing a player's identifier

<ScopeBadges scope='players' read write />

You can change a player's identifier with the `Talo.player_auth.change_identifier()` function - just pass in their current password and a new identifier.

## Forgotten password flow

Expand Down
15 changes: 13 additions & 2 deletions docs/http/player-auth-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To create a new session token, you will need to go through the login flow again

### `INVALID_CREDENTIALS`

When authentication fails (i.e. wrong identifier or password), this error is returned. This error also occurs when trying to change a player password, trying to change an email address or toggling verification and the current password entered is incorrect.
When authentication fails (i.e. wrong identifier or password), this error is returned. This error also occurs when changing a player password, email address, or identifier, or when toggling verification and the current password entered is incorrect.

```javascript
{
Expand Down Expand Up @@ -81,7 +81,7 @@ When trying to verify a player login, this error is thrown if the `code` is not

### `IDENTIFIER_TAKEN`

When trying to create a new player, this error is thrown if the `identifier` is already taken.
When trying to create a new player or update an existing player's identifier, this error is thrown if the `identifier` is already taken.

```javascript
{
Expand Down Expand Up @@ -134,6 +134,17 @@ When trying to change a player's email address, this error is thrown if the new
}
```

### `NEW_IDENTIFIER_MATCHES_CURRENT_IDENTIFIER`

When trying to change a player's identifier, this error is thrown if the new identifier matches the current identifier.

```javascript
{
message: 'Please choose a different identifier',
errorCode: 'NEW_IDENTIFIER_MATCHES_CURRENT_IDENTIFIER'
}
```

### `PASSWORD_RESET_CODE_INVALID`

When trying to reset a player password, this error is thrown if the reset code is incorrect or has expired.
Expand Down
8 changes: 7 additions & 1 deletion docs/unity/player-authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,13 @@ catch (Exception ex)

<ScopeBadges scope='players' read write />

You can also change a player's email with the `Talo.PlayerAuth.ChangeEmail()` function - just pass in their current password and a new email.
You can change a player's email with the `Talo.PlayerAuth.ChangeEmail()` function - just pass in their current password and a new email.

## Changing a player's identifier

<ScopeBadges scope='players' read write />

You can change a player's identifier with the `Talo.PlayerAuth.ChangeIdentifier()` function - just pass in their current password and a new identifier.

## Forgotten password flow

Expand Down