Checkpoint 2

This commit is contained in:
Tuan Dang
2023-02-13 17:11:31 +07:00
parent 30b2b85446
commit 13b1805d04
3 changed files with 13 additions and 1 deletions
@@ -1,7 +1,11 @@
import { getAuthToken, setAuthToken } from '@app/reactQuery';
import { getAuthToken, setAuthToken , setMfaTempToken } from '@app/reactQuery';
// depreciated: go for apiRequest module in config/api
export default class SecurityClient {
static setMfaToken(tokenStr: string) {
setMfaTempToken(tokenStr);
}
static setToken(tokenStr: string) {
setAuthToken(tokenStr);
}