Skip to content

During refresh grant type, prevAccessToken is NULL #16

Open
@pjebs

Description

@pjebs

https://github.com/felipeweb/osin-mysql/blob/master/mysql.go#L281

In LoadAccess, prevAccessToken is initially ""

Once accessToken is found, then LoadAccess is called again but this time code is "" due to prevAccessToken being null in the database.

Due to this, ErrNotFound is returned the second time LoadAccess is called.

This causes the refresh_token grant type to fail when tokenHandler is called.

Any idea how I can fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions