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
("Copying" from email - RE: Update Rule “autonomy-mastery-and-purpose/rule” #8469)
Describe the Bug
So, I did some digging and found that if you already have something favourited you can’t add another. If you have nothing favourited, you can add something. The issue seems to be an API call returning a 401 as you can see in the following screen shot
Upon further investigation, signing out and signing back in seems to allow you to react to rules again!
This would likely mean the error is to do with an expired user token.
Update:
The Rules Functions use auth0's id_token for authentication.
I tested the issue locally with my own auth0 account. After enabling refresh token and waiting for the original id_token to expire, I successfully obtained a new id_token using the /oauth/token API. With this new token, I was able to call the Reactions API successfully.
However there is a potential issue with this approach. The /oauth/token API only provides the new id_token and doesn't update the token claims stored in local storage. This means that once the old token expires, we need to obtain the new id_token every time we call a Rules API, which doesn't seem to be a good practice.
Figure: The claims are not updated, so we will still get an expired token if we use const claims = await getIdTokenClaims();
Cc: @bradystroud @KristenHu @Aibono1225 @adamcogan @drwharris
Hi Team,
("Copying" from email -
RE: Update Rule “autonomy-mastery-and-purpose/rule” #8469
)Describe the Bug
Upon further investigation, signing out and signing back in seems to allow you to react to rules again!
This would likely mean the error is to do with an expired user token.
To Reproduce
Steps to reproduce the behavior:
Expected Behavior
Tasks
Screenshots
Figure: Error that occurs when you try and add a favourite if you already have one.
Thanks!
The text was updated successfully, but these errors were encountered: