简体   繁体   中英

actions-on-google revoke token to allow re linking

I have enabled account linking in my dialogflow application which uses actions-on-google SDK.

I need to revoke account linking in some cases.

I can't find much help around this as to how I can remove linking so that the user has to go again through the account linking process.

I tried returning 401 - Unauthorize response however the application crashes and doesn't really clears the stored token.

Can someone please help?

I personally don't have experience with doing unlinking through code because revoking access seems like something you don't want to do for the user in most cases, but this topic about revoking the accessToken for server side app on the Google Identity docs might be what you need.

It seems that you can revoke a token by sending a HTTP request to the oAuth services from Google and that should handle the revoking for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM