Skip to content

Documentation doesn't mention getAuthCode callback userId options  #213

Open
@rossleonardy

Description

@rossleonardy

There is a very useful hidden(ish) functionality in oauth2-server > lib > grant.js on line 200 that should probably be mentioned in the documentation;
Rather than calling back with an authCode object with a userId, sometimes it is necessary when integrating with an existing system to pass along other user properties in authCode.user to, say, generate the correct token in the users generateToken(type, req, callback) definition.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions