Skip to content
Snippets Groups Projects
Commit 77da6018 authored by Matthieu Fesselier's avatar Matthieu Fesselier
Browse files

bugfix check types

parent 31d4c59b
No related branches found
No related tags found
2 merge requests!58update: switch to solid-client-authn-js,!54Feature/adding getuseridtoken
Pipeline #11023 passed with stage
in 21 seconds
......@@ -197,13 +197,12 @@ class SIBAuth extends HTMLElement {
* @return {Token}
*/
async getUserIdToken() {
const response = await fetch(this.getFavoriteProvider().attributes["data-authority"].value + 'check-session-headers/');
const response = await fetch(`${this.getFavoriteProvider().attributes['data-authority'].value}check-session-headers/`);
const body = await response.json();
console.log(body);
if (!body) return null;
return body;
}
/** @function
* @name getUser
* Return user or null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment