Merge branch 'main' into development
This commit is contained in:
@@ -79,6 +79,8 @@ export const UserProvider = ({ children }) => {
|
||||
setError(`Verify error. ${e.message}`);
|
||||
document.location = signOut();
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
const signIn = async (code) => {
|
||||
@@ -87,6 +89,13 @@ export const UserProvider = ({ children }) => {
|
||||
try {
|
||||
if (!code) return;
|
||||
|
||||
const refresh = async (value) => {
|
||||
let result = null;
|
||||
|
||||
try {
|
||||
if (!value) {
|
||||
throw new Error("Token required");
|
||||
}
|
||||
setFetching(true);
|
||||
setError(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user