fix: front end now compile
This commit is contained in:
@ -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 });
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user