Open pqhung3007 opened 9 months ago
Error: [Error: Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.]
[Error: Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.]
Relevant code block
const loginMutation = useMutation({ mutationFn: (data: LoginFormSchema) => loginUser(data), onSuccess: async (data) => { try { if (successResponseStatus(data)) { await saveToken({ key: 'access_token', value: data.data.access_token }) await saveToken({ key: 'refresh_token', value: data.data.refresh_token }) navigateBasedOnStatus(data.data.user_status, getValues('username')) } else { Toast.show({ type: 'error', text1: 'Đã có lỗi xảy ra', text2: data.message }) } } catch (error) { console.error(error) } }, }
Reason: have not merged to EW-300, where this logic is handled.
EW-300
Resolved in 62d4d7e
Error:
[Error: Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.]
Relevant code block
Reason: have not merged to
EW-300
, where this logic is handled.