Skip to content

Commit fd8afdb

Browse files
committed
change player auth identifier docs
1 parent 9a3dccf commit fd8afdb

3 files changed

Lines changed: 26 additions & 3 deletions

File tree

docs/godot/player-authentication.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,13 @@ else:
152152

153153
<ScopeBadges scope='players' read write />
154154

155-
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.
155+
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.
156+
157+
## Changing a player's identifier
158+
159+
<ScopeBadges scope='players' read write />
160+
161+
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.
156162

157163
## Forgotten password flow
158164

docs/http/player-auth-api.mdx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ When trying to verify a player login, this error is thrown if the `code` is not
8181

8282
### `IDENTIFIER_TAKEN`
8383

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

8686
```javascript
8787
{
@@ -134,6 +134,17 @@ When trying to change a player's email address, this error is thrown if the new
134134
}
135135
```
136136

137+
### `NEW_IDENTIFIER_MATCHES_CURRENT_IDENTIFIER`
138+
139+
When trying to change a player's identifier, this error is thrown if the new identifier matches the current identifier.
140+
141+
```javascript
142+
{
143+
message: 'Please choose a different identifier',
144+
errorCode: 'NEW_IDENTIFIER_MATCHES_CURRENT_IDENTIFIER'
145+
}
146+
```
147+
137148
### `PASSWORD_RESET_CODE_INVALID`
138149

139150
When trying to reset a player password, this error is thrown if the reset code is incorrect or has expired.

docs/unity/player-authentication.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,13 @@ catch (Exception ex)
206206

207207
<ScopeBadges scope='players' read write />
208208

209-
You can also change a player's email with the `Talo.PlayerAuth.ChangeEmail()` function - just pass in their current password and a new email.
209+
You can change a player's email with the `Talo.PlayerAuth.ChangeEmail()` function - just pass in their current password and a new email.
210+
211+
## Changing a player's identifier
212+
213+
<ScopeBadges scope='players' read write />
214+
215+
You can change a player's identifier with the `Talo.PlayerAuth.ChangeIdentifier()` function - just pass in their current password and a new identifier.
210216

211217
## Forgotten password flow
212218

0 commit comments

Comments
 (0)