getIdentity

This method returns the identity of the user that corresponds to the given token (assuming the token is invalid). If you are storing the identity of the user locally (such as in session, as the bundled PHP library does), you should update your local storage when you receive the data from this method.

Tip

If you update a user's details with the user details form, you should call this method afterwards so your locally stored data accurately reflects the data stored in Recite.