@monorise/react 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/auth.action.d.ts +1 -0
- package/dist/actions/auth.action.d.ts.map +1 -1
- package/dist/actions/auth.action.js +23 -6
- package/dist/actions/auth.action.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/services/auth.service.d.ts +1 -0
- package/dist/services/auth.service.d.ts.map +1 -1
- package/dist/services/auth.service.js +4 -0
- package/dist/services/auth.service.js.map +1 -1
- package/index.ts +2 -0
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ declare const initAuthActions: (store: MonoriseStore, authService: AuthService)
|
|
|
14
14
|
getProfile: () => Promise<void>;
|
|
15
15
|
useIsUnauthorized: () => boolean;
|
|
16
16
|
setIsUnauthorized: (isUnauthorized: boolean) => void;
|
|
17
|
+
logout: () => void;
|
|
17
18
|
};
|
|
18
19
|
export { initAuthActions };
|
|
19
20
|
export type AuthActions = ReturnType<typeof initAuthActions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.action.d.ts","sourceRoot":"","sources":["../../actions/auth.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,QAAA,MAAM,eAAe,GAAI,OAAO,aAAa,EAAE,aAAa,WAAW;+BAEvD,MAAM,WACT;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;iBAUR,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,OAAK,CAAC,GAAG;QAC5D,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB;;;
|
|
1
|
+
{"version":3,"file":"auth.action.d.ts","sourceRoot":"","sources":["../../actions/auth.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,QAAA,MAAM,eAAe,GAAI,OAAO,aAAa,EAAE,aAAa,WAAW;+BAEvD,MAAM,WACT;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;iBAUR,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,OAAK,CAAC,GAAG;QAC5D,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB;;;wCAyC0C,OAAO;;CAyBnD,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -20,12 +20,21 @@ const initAuthActions = (store, authService) => {
|
|
|
20
20
|
return profile;
|
|
21
21
|
};
|
|
22
22
|
const getProfile = async () => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
state
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
try {
|
|
24
|
+
const _a = (await authService.getSessionProfile()).data, { displayName, email, accountId } = _a, rest = __rest(_a, ["displayName", "email", "accountId"]);
|
|
25
|
+
store.setState(produce((state) => {
|
|
26
|
+
state.auth.isUnauthorized = false;
|
|
27
|
+
state.auth.profile = Object.assign({ displayName,
|
|
28
|
+
email,
|
|
29
|
+
accountId }, rest);
|
|
30
|
+
}), undefined, 'mr/auth/get-profile');
|
|
31
|
+
}
|
|
32
|
+
catch (err) {
|
|
33
|
+
store.setState(produce((state) => {
|
|
34
|
+
state.auth.isUnauthorized = true;
|
|
35
|
+
state.auth.profile = {};
|
|
36
|
+
}), undefined, 'mr/auth/get-profile');
|
|
37
|
+
}
|
|
29
38
|
};
|
|
30
39
|
const useIsUnauthorized = () => {
|
|
31
40
|
return store((state) => state.auth.isUnauthorized);
|
|
@@ -33,12 +42,20 @@ const initAuthActions = (store, authService) => {
|
|
|
33
42
|
const setIsUnauthorized = (isUnauthorized) => store.setState(produce((state) => {
|
|
34
43
|
state.auth.isUnauthorized = isUnauthorized;
|
|
35
44
|
}));
|
|
45
|
+
const logout = () => {
|
|
46
|
+
authService.logout();
|
|
47
|
+
store.setState(produce((state) => {
|
|
48
|
+
state.auth.isUnauthorized = true;
|
|
49
|
+
state.auth.profile = {};
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
36
52
|
return {
|
|
37
53
|
requestLogin,
|
|
38
54
|
useProfile,
|
|
39
55
|
getProfile,
|
|
40
56
|
useIsUnauthorized,
|
|
41
57
|
setIsUnauthorized,
|
|
58
|
+
logout,
|
|
42
59
|
};
|
|
43
60
|
};
|
|
44
61
|
export { initAuthActions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.action.js","sourceRoot":"","sources":["../../actions/auth.action.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC,MAAM,eAAe,GAAG,CAAC,KAAoB,EAAE,WAAwB,EAAE,EAAE;IACzE,MAAM,YAAY,GAAG,KAAK,EACxB,UAAkB,EAClB,OAA0B,EAC1B,EAAE;QACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,WAAW,CAAC,qBAAqB,CACtD,UAAU,EACV,OAAO,CACR,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,GAKj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BAAiB;QACjB,MAAM;KACP,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ declare const Monorise: {
|
|
|
76
76
|
getProfile: () => Promise<void>;
|
|
77
77
|
useIsUnauthorized: () => boolean;
|
|
78
78
|
setIsUnauthorized: (isUnauthorized: boolean) => void;
|
|
79
|
+
logout: () => void;
|
|
79
80
|
startLoading: <T>({ requestKey, isInterruptive, message, request, }: {
|
|
80
81
|
requestKey: string;
|
|
81
82
|
isInterruptive?: boolean;
|
|
@@ -289,6 +290,7 @@ declare const Monorise: {
|
|
|
289
290
|
email: string;
|
|
290
291
|
accountId: string;
|
|
291
292
|
}, any>>;
|
|
293
|
+
logout: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
292
294
|
setOptions: (opts: {
|
|
293
295
|
apiBaseUrl?: string;
|
|
294
296
|
}) => void;
|
|
@@ -527,6 +529,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
527
529
|
email: string;
|
|
528
530
|
accountId: string;
|
|
529
531
|
}, any>>;
|
|
532
|
+
logout: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
530
533
|
setOptions: (opts: {
|
|
531
534
|
apiBaseUrl?: string;
|
|
532
535
|
}) => void;
|
|
@@ -616,7 +619,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
616
619
|
email: string;
|
|
617
620
|
accountId: string;
|
|
618
621
|
impersonatorId?: string;
|
|
619
|
-
}, getProfile: () => Promise<void>, useIsUnauthorized: () => boolean, setIsUnauthorized: (isUnauthorized: boolean) => void, listMoreEntities: <T extends Entity>(entityType: T, opts?: import("./services/core.service").CommonOptions) => Promise<void>, createEntity: <T extends Entity>(entityType: T, entity: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<import("@monorise/base").CreatedEntity<T>>, upsertEntity: <T extends Entity>(entityType: T, id: string, entity: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<void>, editEntity: <T extends Entity>(entityType: T, id: string, entity: Partial<import("@monorise/base").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<void>, updateLocalEntity: <T extends Entity>(entityType: Entity, entityId: string, data?: Partial<import("@monorise/base").DraftEntity<T>>) => Promise<void>, deleteEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => Promise<void>, getMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string | null, entityId: string, opts?: import("./services/core.service").CommonOptions & {
|
|
622
|
+
}, getProfile: () => Promise<void>, useIsUnauthorized: () => boolean, setIsUnauthorized: (isUnauthorized: boolean) => void, logout: () => void, listMoreEntities: <T extends Entity>(entityType: T, opts?: import("./services/core.service").CommonOptions) => Promise<void>, createEntity: <T extends Entity>(entityType: T, entity: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<import("@monorise/base").CreatedEntity<T>>, upsertEntity: <T extends Entity>(entityType: T, id: string, entity: import("@monorise/base").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<void>, editEntity: <T extends Entity>(entityType: T, id: string, entity: Partial<import("@monorise/base").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<void>, updateLocalEntity: <T extends Entity>(entityType: Entity, entityId: string, data?: Partial<import("@monorise/base").DraftEntity<T>>) => Promise<void>, deleteEntity: <T extends Entity>(entityType: T, id: string, opts?: import("./services/core.service").CommonOptions) => Promise<void>, getMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string | null, entityId: string, opts?: import("./services/core.service").CommonOptions & {
|
|
620
623
|
defaultMutualData?: Record<string, any>;
|
|
621
624
|
}) => Promise<import("@monorise/base").Mutual<B, T> | undefined>, createMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, payload?: import("@monorise/base").MutualData<B, T> | Record<string, any>, opts?: import("./services/core.service").CommonOptions) => Promise<void>, upsertLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string, mutualData: import("@monorise/base").MutualData<B, T>, data?: import("@monorise/base").EntitySchemaMap[T] | Record<string, any>) => Promise<void>, deleteMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId?: string, opts?: import("./services/core.service").CommonOptions) => Promise<void>, deleteLocalMutual: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T, byEntityId: string, entityId: string) => void, useEntity: <T extends Entity>(entityType: T, id?: string, opts?: import("./services/core.service").CommonOptions) => {
|
|
622
625
|
entity: import("@monorise/base").CreatedEntity<T> | undefined;
|
|
@@ -653,6 +656,6 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
653
656
|
requestKey: string;
|
|
654
657
|
error?: import("./types/api.type").ApplicationRequestError;
|
|
655
658
|
}, useEntityState: <T extends Entity>(entityType: T) => Record<Entity, import("./types/monorise.type").CommonStore<import("@monorise/base").CreatedEntity<Entity>>>[T];
|
|
656
|
-
export { store, axios, authService, filestoreService, coreService, setConfig, getConfig, useConfig, startLoading, endLoading, setError, getError, clearError, openModal, closeModal, useLoadStore, useInterruptiveLoadStore, useErrorStore, useModalStore, requestLogin, useProfile, getProfile, useIsUnauthorized, setIsUnauthorized, listMoreEntities, createEntity, upsertEntity, editEntity, updateLocalEntity, deleteEntity, getMutual, createMutual, upsertLocalMutual, deleteMutual, deleteLocalMutual, useEntity, useEntities, useMutual, useMutuals, useEntityState, };
|
|
659
|
+
export { store, axios, authService, filestoreService, coreService, setConfig, getConfig, useConfig, startLoading, endLoading, setError, getError, clearError, openModal, closeModal, useLoadStore, useInterruptiveLoadStore, useErrorStore, useModalStore, requestLogin, useProfile, getProfile, useIsUnauthorized, setIsUnauthorized, logout, listMoreEntities, createEntity, upsertEntity, editEntity, updateLocalEntity, deleteEntity, getMutual, createMutual, upsertLocalMutual, deleteMutual, deleteLocalMutual, useEntity, useEntities, useMutual, useMutuals, useEntityState, };
|
|
657
660
|
export default Monorise;
|
|
658
661
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAWnE,KAAK,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;CACpD,CAAC;AAoDF,QAAA,MAAM,QAAQ;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAWnE,KAAK,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,Y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Z,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,SAAS,EACT,UAAU,EACV,cAAc,GACf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ const initMonorise = () => {
|
|
|
43
43
|
coreService }, configActions), appActions), authActions), coreActions);
|
|
44
44
|
};
|
|
45
45
|
const Monorise = initMonorise();
|
|
46
|
-
const { store, axios, authService, filestoreService, coreService, setConfig, getConfig, useConfig, startLoading, endLoading, setError, getError, clearError, openModal, closeModal, useLoadStore, useInterruptiveLoadStore, useErrorStore, useModalStore, requestLogin, useProfile, getProfile, useIsUnauthorized, setIsUnauthorized, listMoreEntities, createEntity, upsertEntity, editEntity, updateLocalEntity, deleteEntity, getMutual, createMutual, upsertLocalMutual, deleteMutual, deleteLocalMutual, useEntity, useEntities, useMutual, useMutuals, useEntityState, } = Monorise;
|
|
47
|
-
export { store, axios, authService, filestoreService, coreService, setConfig, getConfig, useConfig, startLoading, endLoading, setError, getError, clearError, openModal, closeModal, useLoadStore, useInterruptiveLoadStore, useErrorStore, useModalStore, requestLogin, useProfile, getProfile, useIsUnauthorized, setIsUnauthorized, listMoreEntities, createEntity, upsertEntity, editEntity, updateLocalEntity, deleteEntity, getMutual, createMutual, upsertLocalMutual, deleteMutual, deleteLocalMutual, useEntity, useEntities, useMutual, useMutuals, useEntityState, };
|
|
46
|
+
const { store, axios, authService, filestoreService, coreService, setConfig, getConfig, useConfig, startLoading, endLoading, setError, getError, clearError, openModal, closeModal, useLoadStore, useInterruptiveLoadStore, useErrorStore, useModalStore, requestLogin, useProfile, getProfile, useIsUnauthorized, setIsUnauthorized, logout, listMoreEntities, createEntity, upsertEntity, editEntity, updateLocalEntity, deleteEntity, getMutual, createMutual, upsertLocalMutual, deleteMutual, deleteLocalMutual, useEntity, useEntities, useMutual, useMutuals, useEntityState, } = Monorise;
|
|
47
|
+
export { store, axios, authService, filestoreService, coreService, setConfig, getConfig, useConfig, startLoading, endLoading, setError, getError, clearError, openModal, closeModal, useLoadStore, useInterruptiveLoadStore, useErrorStore, useModalStore, requestLogin, useProfile, getProfile, useIsUnauthorized, setIsUnauthorized, logout, listMoreEntities, createEntity, upsertEntity, editEntity, updateLocalEntity, deleteEntity, getMutual, createMutual, upsertLocalMutual, deleteMutual, deleteLocalMutual, useEntity, useEntities, useMutual, useMutuals, useEntityState, };
|
|
48
48
|
export default Monorise;
|
|
49
49
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,eAAe,MAAM,yBAAyB,CAAC;AACtD,OAAO,eAAe,MAAM,yBAAyB,CAAC;AACtD,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAY3D,MAAM,YAAY,GAAG,GAAG,EAAE;IACxB,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,GAC5D,iBAAiB,EAAE,CAAC;IACtB,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IACzC,MAAM,aAAa,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,oBAAoB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAEtD,MAAM,WAAW,GAAG,eA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,EACR,UAAU,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,YAAY,EACZ,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,SAAS,EACT,UAAU,EACV,cAAc,GACf,GAAG,QAAQ,CAAC;AAEb,OAAO,EACL,KAAK,EACL,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,YAAY,EACZ,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,SAAS,EACT,UAAU,EACV,cAAc,GACf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACzE,OA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ACV,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,SAAS,EACT,UAAU,EACV,cAAc,GACf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -13,6 +13,7 @@ declare const initAuthService: (axios: AxiosInterceptor) => {
|
|
|
13
13
|
email: string;
|
|
14
14
|
accountId: string;
|
|
15
15
|
}, any>>;
|
|
16
|
+
logout: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
16
17
|
setOptions: (opts: Options) => void;
|
|
17
18
|
};
|
|
18
19
|
export default initAuthService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.service.d.ts","sourceRoot":"","sources":["../../services/auth.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,OAAO,gBAAgB;wCAIH,MAAM,WAAW,YAAY;wBAgB7C,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;qBAGzC,MAAM;eACZ,MAAM;mBACF,MAAM
|
|
1
|
+
{"version":3,"file":"auth.service.d.ts","sourceRoot":"","sources":["../../services/auth.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,OAAO,gBAAgB;wCAIH,MAAM,WAAW,YAAY;wBAgB7C,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;qBAGzC,MAAM;eACZ,MAAM;mBACF,MAAM;;;uBAWG,OAAO;CAalC,CAAC;AAEF,eAAe,eAAe,CAAC;AAE/B,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -15,12 +15,16 @@ const initAuthService = (axios) => {
|
|
|
15
15
|
const getSessionProfile = () => axios.get('/session', {
|
|
16
16
|
requestKey: 'auth/session',
|
|
17
17
|
});
|
|
18
|
+
const logout = () => axios.get('/logout', {
|
|
19
|
+
requestKey: 'auth/logout',
|
|
20
|
+
});
|
|
18
21
|
const setOptions = (opts) => {
|
|
19
22
|
options = Object.assign(Object.assign({}, options), opts);
|
|
20
23
|
};
|
|
21
24
|
return {
|
|
22
25
|
requestLoginMagicLink,
|
|
23
26
|
getSessionProfile,
|
|
27
|
+
logout,
|
|
24
28
|
setOptions,
|
|
25
29
|
};
|
|
26
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../services/auth.service.ts"],"names":[],"mappings":"AAWA,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAE,EAAE;IAClD,IAAI,OAAO,GAAY,EAAE,CAAC;IAC1B,MAAM,EAAE,UAAU,GAAG,WAAW,EAAE,GAAG,OAAO,CAAC;IAE7C,MAAM,qBAAqB,GAAG,CAAC,UAAkB,EAAE,OAAqB,EAAE,EAAE;QAC1E,OAAO,KAAK,CAAC,IAAI,CACf,GAAG,UAAU,IAAI,UAAU,EAAE,EAC7B;YACE,IAAI,oBAAO,OAAO,CAAE;SACrB,EACD;YACE,UAAU,EAAE,QAAQ,UAAU,gBAAgB;YAC9C,cAAc,EAAE,IAAI;YACpB,Q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M,UAAU,GAAG,CAAC,IAAa,EAAE,EAAE;QACnC,OAAO,mCACF,OAAO,GACP,IAAI,CACR,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO;QACL,qBAAqB;QACrB,iBAAiB;QACjB,MAAM;QACN,UAAU;KACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/index.ts
CHANGED
|
@@ -96,6 +96,7 @@ const {
|
|
|
96
96
|
getProfile,
|
|
97
97
|
useIsUnauthorized,
|
|
98
98
|
setIsUnauthorized,
|
|
99
|
+
logout,
|
|
99
100
|
listMoreEntities,
|
|
100
101
|
createEntity,
|
|
101
102
|
upsertEntity,
|
|
@@ -139,6 +140,7 @@ export {
|
|
|
139
140
|
getProfile,
|
|
140
141
|
useIsUnauthorized,
|
|
141
142
|
setIsUnauthorized,
|
|
143
|
+
logout,
|
|
142
144
|
listMoreEntities,
|
|
143
145
|
createEntity,
|
|
144
146
|
upsertEntity,
|