Skip to content

Commit

Permalink
Update send-to-api.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davlgd committed Mar 8, 2025
1 parent 0a6335c commit db86b57
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/models/send-to-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,14 @@ export function processError (error) {

export async function getHostAndTokens () {
const tokens = await loadTokens();
let host = conf.API_HOST;

if (tokens.apiToken != null) {
host = conf.AUTH_BRIDGE_HOST;
}

return {
apiHost: conf.API_HOST,
apiHost: host,
tokens,
};
}

0 comments on commit db86b57

Please sign in to comment.