Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Prompt user to re-link their account before the token expires #403

Open
nchatzi opened this issue Jul 30, 2020 · 0 comments
Open

Prompt user to re-link their account before the token expires #403

nchatzi opened this issue Jul 30, 2020 · 0 comments

Comments

@nchatzi
Copy link

nchatzi commented Jul 30, 2020

Our agent uses OAuth account linking with Authentication code. We would like to suggest to the user to relink their account when the consent they've given is about to expire.

To achieve that, we first invalidate the consent on our auth server and then proceed to respond with a new SignIn(). However, the agent doesn't immediately recognise that the token is invalid, so the new SignIn() doesn't force the user to link their account again. The result is that the user will proceed on getting error responses when intents that need a linked account are invoked. This will occur until the agent realises that the token is not valid anymore (~30 minutes after the consent is invalidated on our auth server). 

Is there a way to force the agent to do the account linking process?

Note: Returning a 401 response (UnauthorisedError) is not really an option because we don't want the conversation to end. Instead we want the user to continue their conversation and for them to be able to immediately link their account again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant