Thanks to visit codestin.com
Credit goes to github.com

Skip to content

put_session successful, but get_session failed #182

@Jaycelv

Description

@Jaycelv

Steps to Reproduce

export ACCOUNT_AUTH0_DOMAIN="dev-quu8v1pqs4oq7.us.auth0.com"
export ACCOUNT_AUTH0_CLIENT_ID="YGsykmGsfj0qALk8NraBnjb"
export ACCOUNT_AUTH0_CLIENT_SECRET="7fygpnimCdxhun9Ng7wOabfyCCyz6se3NYBGoXGutbVOw6hFnGOQ"
export ACCOUNT_AUTH0_LOGOUT_URL="https://dev-quu8v1pqs4oq7.us.auth0.com/v2/logout"
export ACCOUNT_AUTH0_LOGOUT_RETURN_URL="https://compony.com/auth/logout"
export ACCOUNT_CLOAK_KEY="lvutbtvZAeuy3SFAftwky+IW4ESy6syE="
here is my env config, When I log in, I can be redirected to the authorization login page and successfully authorize. I print logs in the code and the parameters passed to put_session have values, but the method get_session(conn, :current_user) cannot retrieve the value.
The following is the user log that I printed out."
%{avatar: "https://lh3.googleusercontent.com/a/AGNmyxYRdPlRmw7aj-Ekprx5cCpIfoqgyg_BKPb0svLN=s96-c", email: "[email protected]", id: 10, name: "Rumble", nickname: "Rumble.L", uid: "google-oauth2|114928592633458978", watchlist_id: 10}

Expected Result

get_session can get personal information

Actual Result

get_session return nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions