Skip to content

Cannot Get Access Token #169

Description

@yang-cloudlet

Hi,

I am trying to get Access Token, but failed. Error message is

Unable to retrieve access token for current auth strategy.

ReactStormpath.getAccessToken()
  .then((accessToken) => {
    fetch('http://localhost:3000/api/subscription', {
      method: 'get',
      headers: {
        'Authorization': 'Bearer ' + accessToken
      }
    });
  }).catch(() => {
    // Could not get access token, user is not logged in
  });

Then, realise there is no getToken method in the UserSerivce.js

Please verify this.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions