This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/* eslint-disable */
|
||||
|
||||
import decode from "jwt-decode";
|
||||
//import axios from 'axios';
|
||||
//import auth0 from 'auth0-js';
|
||||
@@ -55,7 +57,12 @@ const USER_ROLES = AuthorizationRoles.NoRole;
|
||||
// domain: CLIENT_DOMAIN
|
||||
// });
|
||||
|
||||
export function login() {
|
||||
export function processLogin(response) {
|
||||
if (response) {
|
||||
debugger;
|
||||
}
|
||||
|
||||
return Promise.resolve(true);
|
||||
// auth.authorize({
|
||||
// responseType: 'token id_token',
|
||||
// redirectUri: REDIRECT,
|
||||
@@ -68,7 +75,8 @@ export function login() {
|
||||
// mode: 'history',
|
||||
// });
|
||||
|
||||
export function logout() {
|
||||
export function processLogout() {
|
||||
console.log("util\\auth.js->ProcessLogout called!");
|
||||
clearIdToken();
|
||||
clearAccessToken();
|
||||
//router.go('/');
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export default {
|
||||
apiUrl: "http://localhost:7575/api/v8.0/",
|
||||
apiToken: ""
|
||||
apiToken: "",
|
||||
roles: 0
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user