Skip to content

Cannot Get Access Token #169

@yang-cloudlet

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

Metadata

Metadata

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