You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ This is the changelog for [Authress SDK](readme.md).
8
8
*[Breaking]`ServiceClientTokenProvider` is now a first-class Javascript Class, it cannot be used as a function.
9
9
*[Breaking]`setToken` has been removed from the interface. To set a user token, pass in a function into the AuthressClient constructor.
10
10
*[Fix] Remove passing the token in the request for token verification, it is completely unnecessary, and does not work for service clients in any scenario.
11
+
* Add UserTokenConfiguration and setUserTokenConfiguration
* Default fallback configuration for the claims inserted into the JWTs generated by Authress.
665
+
* @type {DefaultClaims}
666
+
* @memberof UserTokenConfiguration
667
+
*/
668
+
defaultClaims?: DefaultClaims;
669
+
}
670
+
671
+
/**
672
+
* @export
673
+
* @interface DefaultClaims
674
+
*/
675
+
exportinterfaceDefaultClaims{
676
+
/**
677
+
* A map of claims to add to generated JWTs. These claims are used when explicitly not specified by Authress. Do not include any value specified by https://www.iana.org/assignments/jwt/jwt.xhtml as they will get overwritten. Must be smaller than 1024 Bytes.
* A map of claims to add to generated user identity tokens. These claims are used when explicitly not specified by Authress. Do not include any value specified by https://www.iana.org/assignments/jwt/jwt.xhtml as they will get overwritten. Must be smaller than 1024 Bytes.
* @summary Sets the user authentication configuration. This endpoint contains properties that allow detailed control over tokens generated for the user.
982
+
* @param {string} userId The user identifier.
983
+
* @param {UserTokenConfiguration} tokenConfiguration The user token configuration, used to configure token properties.
thrownewArgumentRequiredError('tokenConfiguration','Required parameter tokenConfiguration was null or undefined when calling setUserTokenConfiguration.');
0 commit comments