Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting a refresh token from Google does not seem to work #66

Open
simonecesano opened this issue Aug 22, 2022 · 0 comments
Open

Getting a refresh token from Google does not seem to work #66

simonecesano opened this issue Aug 22, 2022 · 0 comments

Comments

@simonecesano
Copy link

simonecesano commented Aug 22, 2022

I struggled for a while to try and get a refresh token from Google. See this question. I ended up messing around with the source and (I think) I figured that the access_type arg doesn't get passed on - which seems to be fixed by adding a line like this:

$authorize_url->query->append(access_type => $provider_args->{access_type}) if defined $provider_args->{access_type};  

in _auth_url around line 95 or so.

It could be that I haven't figured out the right way to do this (but then could you please take a look at the docs, which are slightly terse IMHO). Or maybe it is an issue - and I hope it's ok to raise it here. Thanks for all the work on Mojolicious BTW. It's been a joy and a lifesaver so often for me.

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

No branches or pull requests

1 participant