Enhance signin flow: add toast notifications for error handling and update background color variable
This commit is contained in:
1 parent
2b368cede4
commit
ce44cd03b9
4 files changed
+10
-2
No files matched your search
@@ -28,6 +28,8 @@ export const useAuth = () => {
|
||||
)
|
||||
|
||||
refreshToken.value = res.data.refreshToken
|
||||
|
||||
await navigateTo("/")
|
||||
} catch (e) {
|
||||
if (axios.isAxiosError(e) && e.response?.data?.message) {
|
||||
throw new Error(e.response.data.message)
|
||||
|
||||
Reference in new issue
Block a user