fix: front end now compile

This commit is contained in:
Pierre Tellier
2025-02-03 22:48:17 +01:00
parent 23e6c7f9bb
commit 89d7b2d342
8 changed files with 30 additions and 135 deletions

View File

@ -8,7 +8,7 @@ const options = {
const keycloak = new Keycloak(options);
let authenticated;
let authenticated: boolean | undefined;
let store = null;
async function login(){
@ -36,7 +36,7 @@ async function signup(){
*
* @param onInitCallback
*/
async function init(onInitCallback) {
async function init(onInitCallback: () => void) {
try {
authenticated = await keycloak.init({
onLoad: "check-sso",
@ -54,7 +54,7 @@ async function init(onInitCallback) {
* Initializes store with Keycloak user data
*
*/
async function initStore(storeInstance) {
async function initStore(storeInstance: any) {
try {
store = storeInstance
console.log(keycloak)
@ -71,7 +71,7 @@ async function initStore(storeInstance) {
/**
* Logout user
*/
function logout(url) {
function logout(url: string) {
keycloak.logout({ redirectUri: url });
}