且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从Google API获取刷新令牌

更新时间:2023-02-14 12:33:29

我想我已经解决了,而不是使用rovaling_prompt = force,您可以使用:

I think I figured it out, instead of using approval_prompt=force you can use:

{       
        ...
        access_type='offline',
        prompt='select_account consent'
}

强制执行新的批准屏幕并获取新的刷新令牌

to force a new approval screen and get a new refresh token.