Skip to content

Support for returning refresh tokens in the external module (OAuth)? #201

@risafj

Description

@risafj

Hi, do you have any plans to return not only the access_token but also the refresh_token when logging the user in via the external module? The refresh_token allows the access_token to be refreshed when it expires in one hour.

Right now, the @user_hash being returned looks like this (I'm using Google as the provider), and the refresh_token is nil.

{:token=>"<long string>", :refresh_token=>nil, :expires_at=> <integer>, :expires_in=> <integer>, :user_info=>{"id"=>"<numbers>", "email"=>"email@email.com", "verified_email"=>true, "name"=>"<full name>", "given_name"=>"<first name>", "family_name"=>"<last name>", "picture"=>"<jpg url>", "locale"=>"ja", "hd"=>"<domain>"}, :uid=>"<numbers>"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions