Compare commits
3 Commits
2027cd53d7
...
76c2626507
| Author | SHA1 | Date | |
|---|---|---|---|
| 76c2626507 | |||
| 5e43d640a2 | |||
| 6588278e0f |
@@ -1,5 +1,5 @@
|
|||||||
NEXT_PUBLIC_ENV=dev
|
NEXT_PUBLIC_ENV=dev
|
||||||
NEXT_PUBLIC_API_BASE=http://localhost:6100/api
|
NEXT_PUBLIC_API_BASE=https://test-lg-cxdash.kric.com/api
|
||||||
|
|
||||||
ENV=dev
|
ENV=dev
|
||||||
API_BACK_SERVER=http://localhost:6101/api/v1
|
API_BACK_SERVER=http://localhost:6101/api/v1
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ NEXT_PUBLIC_ENV=local
|
|||||||
NEXT_PUBLIC_API_BASE=http://localhost:6100/api
|
NEXT_PUBLIC_API_BASE=http://localhost:6100/api
|
||||||
|
|
||||||
ENV=local
|
ENV=local
|
||||||
API_CONTACT_SERVER=http://localhost:6101/api/v1
|
API_BACK_SERVER=http://localhost:6101/api/v1
|
||||||
API_KART_SERVER=https://rapi.kric.com/api/v1
|
API_KART_SERVER=https://rapi.kric.com/api/v1
|
||||||
KART_API_KEY=4B726963-436F6E74616374-46726F6E74-402531213230
|
KART_API_KEY=4B726963-436F6E74616374-46726F6E74-402531213230
|
||||||
@@ -2,6 +2,6 @@ NEXT_PUBLIC_ENV=prod
|
|||||||
NEXT_PUBLIC_API_BASE=http://localhost:6100/api
|
NEXT_PUBLIC_API_BASE=http://localhost:6100/api
|
||||||
|
|
||||||
ENV=prod
|
ENV=prod
|
||||||
API_CONTACT_SERVER=http://localhost:6101/api/v1
|
API_BACK_SERVER=http://localhost:6101/api/v1
|
||||||
API_KART_SERVER=https://rapi.kric.com/api/v1
|
API_KART_SERVER=https://rapi.kric.com/api/v1
|
||||||
KART_API_KEY=4B726963-436F6E74616374-46726F6E74-402531213230
|
KART_API_KEY=4B726963-436F6E74616374-46726F6E74-402531213230
|
||||||
@@ -12,8 +12,7 @@ export const useAuth = () => {
|
|||||||
const setFromLoginResponse = useCallback(
|
const setFromLoginResponse = useCallback(
|
||||||
(res: LoginUser, loginSeatNumber:string|null = null) => {
|
(res: LoginUser, loginSeatNumber:string|null = null) => {
|
||||||
setAuth({
|
setAuth({
|
||||||
user: res,
|
user: res
|
||||||
seatNumber: loginSeatNumber,
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
[setAuth],
|
[setAuth],
|
||||||
@@ -29,7 +28,6 @@ export const useAuth = () => {
|
|||||||
const logout = useCallback(() => {
|
const logout = useCallback(() => {
|
||||||
setAuth({
|
setAuth({
|
||||||
user: null,
|
user: null,
|
||||||
seatNumber: null,
|
|
||||||
});
|
});
|
||||||
}, [setAuth]);
|
}, [setAuth]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user