Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

Allow function as "authorization" setting #18

@BorisTB

Description

@BorisTB

token can change over time, It would definitely be better to set it before each request and not setting it only once, when app loads (I'm using apiDecorator).

e.g.:

const api = apiDecorator({
  url: 'http://example.com'
  authorization: () => `Bearer ${getToken()}`
})

This is kind of deal breaker for me, otherwise this looks like a really amazing library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions