Skip to main content
Version: 6.1.0

RefreshExternalIdentity

Refreshes the current user's External identity. The token is re-validated by the app's external authentication script (the same one used by AuthenticateExternal), and the call succeeds only if the identity is already attached to the current profile.

If the external authentication script returns an auth payload, it is included in the response as authPayload.

ServiceOperation
identityREFRESH_EXTERNAL_IDENTITY

Method Parameters​

ParameterDescription
externalIdUser ID
authenticationTokenPassword or client side token
externalAuthNameThe name of the external authentication mechanism (script) to use

Usage​

http://localhost:3000
// Not available in this client library. To view example, switch to the Cloud Code or Raw tab
JSON Response
{
"data": {
"externalId": "user@example.com",
"authenticationType": "External",
"externalAuthName": "MyAuthScript"
},
"status": 200
}
Common Error Code

Status Codes​

CodeNameDescription
40307TOKEN_DOES_NOT_MATCH_USERThe external authentication script rejected the token.
40206MISSING_IDENTITY_ERRORThe current profile does not have this External identity attached.