-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Labels
Description
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