Skip to content

Your new implementation does not work as intended #23

Closed
@gilles-crealp

Description

@gilles-crealp

Sorry, but your new implementation (version 2) do not work as intended.

  1. Optional parameters (like scope) are declared in data even if not set.
    The call oauth.clientCredentials(axios, 'https://example.com', 'foo', 'bar')() send grant_type=client_credentials&client_id=foo&client_secret=bar&scope= to the API.
  2. The parameters of the function returned by your first function do not end up correctly in data.
    The call oauth.clientCredentials(axios, 'https://example.com', 'foo', 'bar')('baz') send 0=b&1=a&2=z&grant_type=client_credentials&client_id=foo&client_secret=bar&scope= to the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions