Use access token rather than id token when calling API
This commit is contained in:
@@ -2,7 +2,7 @@ const webAuth = require("../auth").default;
|
||||
|
||||
module.exports = {
|
||||
includeCredentials: (uri, options) => {
|
||||
const token = webAuth.idToken();
|
||||
const token = webAuth.accessToken();
|
||||
if (token) {
|
||||
options.headers['Authorization'] = 'Bearer ' + token;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user