wip
This commit is contained in:
parent
c9ced4f226
commit
97fc74315c
3 changed files with 11 additions and 9 deletions
7
dist/bundle.es.js
vendored
7
dist/bundle.es.js
vendored
|
@ -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
7
dist/bundle.js
vendored
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue