Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Add support for 'Bearer token' style header #5

Closed
@ekryski

Description

@ekryski

It should also probably be the first priority. It's as simple as changing these lines to these:

jwtFromRequest: ExtractJwt.fromExtractors([
    ExtractJwt.fromAuthHeader()
    ExtractJwt.fromHeader(jwtSettings.header.toLowerCase()),
    ExtractJwt.fromBodyField(jwtSettings.bodyKey)
])

and writing a quick test.

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