Skip to content

Commit effb723

Browse files
authored
Add notes to UPGRADE with more details on Auth0::exchange() changes in V8
1 parent cedf091 commit effb723

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

UPGRADE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ These classes were updated in SDK 8.0:
5757
- Public method `deleteAllPersistentData()` renamed to `clear()`.
5858
- Public methods `getNonce()` and `urlSafeBase64Decode()` were removed.
5959
- Public methods `getAccessTokenExpiration()` and `setAccessTokenExpiration()` were added for retrieving for storing an access token expiration timestamp in session storage, respectively.
60+
- Public methods `getUser()`, `getAccessToken()`, `getIdToken()` and `getRefreshToken()` no longer implicitly invoke `exchange()` as was previously the case, and instead return only what is already available in an available session. This change was made to avoid unintentionally invoking the token exchange at inappropriate times, and to allow developers to more easily check for an available session without accidentally executing unwanted code. Developers will need to call `Auth0::exchange()` themselves when a code exchange is desired to establish a session and store user data, which will then be available for return from the beforementioned methods.
6061
- Public method `getCredentials()` added as a convenience. This method returns the Id Token, Access Token, Refresh Token, Access Token expiration timestamp, and user data from an available session without invoking an authorization flow, exchange, or raising an error if a session is not available.
6162

6263
- Class `Auth0\SDK\API\Authentication` updated:

0 commit comments

Comments
 (0)