Revize 8040f287
Přidáno uživatelem Michal Schwob před více než 1 rok
src/api/authservice.ts | ||
---|---|---|
1 | 1 |
import { axiosInstance } from "./api" |
2 |
import {Toast} from "native-base" |
|
2 | 3 |
|
3 | 4 |
export const loginRequest = async (username: string, password: string) => { |
4 | 5 |
return await axiosInstance.post( |
... | ... | |
11 | 12 |
} |
12 | 13 |
|
13 | 14 |
export const isAuthRequest = async () => { |
15 |
Toast.show({ |
|
16 |
title: `Checking auth ${axiosInstance.defaults.baseURL}`, |
|
17 |
duration: 10000 |
|
18 |
}) |
|
14 | 19 |
return await axiosInstance.get( |
15 | 20 |
"/isauth" |
16 | 21 |
) |
Také k dispozici: Unified diff
DEBUG: Added toast for in app debug
FIX: axios version updated
re #10822