APIs in the AuthUtils module
Use the APIs in the AuthUtils module to handle authentication tokens that are utilized for REST API calls.
- getAuthInstance(config)
Obtains an instance of the PegaAuth class that contains helper functions for the OAUTH2.0 registration in Constellation applications.
- revokeTokens()
Revokes the access and refresh tokens.
- setTokens(tokenInfo)
Adds the access token to the fetch request headers.
Previous topic uploadAttachment(file, onUploadProgress, errorHandler, context) Next topic getAuthInstance(config)