1
votes

I've set up account linking with custom OAuth endpoints for Google Assistant (using Dialogflow) but can't find a way to sign a user out. There are no built-in actions to trigger sign out like there are for sign in (actions_intent_SIGN_IN) nor is there a way to empty out the "user" object containing their access token passed in each request to my webhook.

Has anyone found out how to manually unlink a user's account?

Similar question to Account Unlinking on Actions on Google but no feasible answer was provided.

1

1 Answers

1
votes

At any time, you can return an HTTP 401 "Unauthorized" code and Google will consider the token invalid in the future. This is the equivalent of logging the user out".

(See here, but this is true for the Auth Code flow as well.)