We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Without access_type, I'm not able to get a refresh token for offline access, so I patched the lib for some customer parameters that I wanted.
access_type
@doc """ Handles initial request for Google authentication. """ def handle_request!(conn) do scopes = conn.params["scope"] || option(conn, :default_scope) # added response_type, access_type, and approval_prompt opts = [ scope: scopes, response_type: "code", access_type: "offline", approval_prompt: "force" ] if conn.params["state"], do: opts = Keyword.put(opts, :state, conn.params["state"]) opts = Keyword.put(opts, :redirect_uri, callback_url(conn)) redirect!(conn, Ueberauth.Strategy.Google.OAuth.authorize_url!(opts)) end
What is the proper way to pass custom options? If this isn't supported, what can I do to help improve the library? Thanks!
The text was updated successfully, but these errors were encountered:
Just stumbled across this one, and would also support having the ability to have offline access
Sorry, something went wrong.
Address in #23
No branches or pull requests
Without
access_type
, I'm not able to get a refresh token for offline access, so I patched the lib for some customer parameters that I wanted.What is the proper way to pass custom options? If this isn't supported, what can I do to help improve the library? Thanks!
The text was updated successfully, but these errors were encountered: