Invalid state. ''bad, state expected : null. in msal Angular
When you are using MSAL in angular app you encounter this error "Invalid state. ''bad, state expected : null" while calling "getCachedTokenInternal" method.
Typescript shows pass string in intelligence and if you are now aware about state then you will pass blank string like "" but it gives above error.
Solution
Pass the state as "null" as below.
var token = super.getCachedTokenInternal(scopes, this.getAccount(), null);
For more refer git error explanation -
Thanks
Comments
Post a Comment