Skip to content
Snippets Groups Projects
Commit 8b84685a authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Merge branch 'dev' into 'main'

Release: Sprint/2022-03

See merge request !5
parents 8b4b3916 17955e1e
Branches
No related tags found
1 merge request!5Release: Sprint/2022-03
using Coscine.Configuration;
using Coscine.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
......@@ -64,7 +64,14 @@ namespace Coscine.CodeGen.CodeGenerator
combinationFileText += @"
if (typeof coscine !== 'undefined' && typeof coscine.authorization !== 'undefined') {
accessToken = coscine.authorization.bearer;
accessToken = 'Bearer ' + coscine.authorization.bearer;
}
if (typeof window !== 'undefined') {
// LocalStorage > Global Variables
const localStorageToken = localStorage.getItem('coscine.authorization.bearer');
if (localStorageToken) {
accessToken = 'Bearer ' + localStorageToken;
}
}
const getHostName = () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment