Closed haines closed 11 months ago
If you set token to be a function in the provider configuration, and that function throws an error, that's currently an unhandled promise rejection.
token
This PR handles the error by calling the permissionDeniedHandler so that the provider emits an authenticationFailed event that the user can handle.
permissionDeniedHandler
authenticationFailed
If you set
token
to be a function in the provider configuration, and that function throws an error, that's currently an unhandled promise rejection.This PR handles the error by calling the
permissionDeniedHandler
so that the provider emits anauthenticationFailed
event that the user can handle.