This commit is contained in:
zeppi 2021-09-24 21:23:47 -04:00
parent c9ced4f226
commit 97fc74315c
3 changed files with 11 additions and 9 deletions

7
dist/bundle.es.js vendored
View file

@ -275,9 +275,10 @@ Lbryio.call = (resource, action, params = {}, method = 'get') => {
if (action === 'me') {
// when we support transition from auth to access, bring this in
// if (tokens && tokens.access_token) {
// headers.Authorization = `Bearer ${tokens.access_token}`;
// }
if (tokens && tokens.access_token) {
headers.Authorization = `Bearer ${tokens.access_token}`;
}
if (tokens && tokens.auth_token) {
fullParams.auth_token = tokens.auth_token;
}

7
dist/bundle.js vendored
View file

@ -582,9 +582,10 @@ Lbryio.call = function (resource, action) {
if (action === 'me') {
// when we support transition from auth to access, bring this in
// if (tokens && tokens.access_token) {
// headers.Authorization = `Bearer ${tokens.access_token}`;
// }
if (tokens && tokens.access_token) {
headers.Authorization = "Bearer ".concat(tokens.access_token);
}
if (tokens && tokens.auth_token) {
fullParams.auth_token = tokens.auth_token;
}

View file

@ -65,9 +65,9 @@ Lbryio.call = (resource, action, params = {}, method = 'get') => {
// delete auth token after success
if (action === 'me') {
// when we support transition from auth to access, bring this in
// if (tokens && tokens.access_token) {
// headers.Authorization = `Bearer ${tokens.access_token}`;
// }
if (tokens && tokens.access_token) {
headers.Authorization = `Bearer ${tokens.access_token}`;
}
if (tokens && tokens.auth_token) {
fullParams.auth_token = tokens.auth_token;
}