chore: update icon
This commit is contained in:
@@ -13,20 +13,12 @@ import { extractUsernameFromToken } from "../auth/jwtUtils";
|
|||||||
|
|
||||||
const V1 = "https://uber-stup.club/api/v1";
|
const V1 = "https://uber-stup.club/api/v1";
|
||||||
|
|
||||||
// ============================================
|
|
||||||
// AUTH HELPERS
|
|
||||||
// ============================================
|
|
||||||
|
|
||||||
export const getJwtUsername = async (): Promise<string | null> => {
|
export const getJwtUsername = async (): Promise<string | null> => {
|
||||||
const token = await getToken();
|
const token = await getToken();
|
||||||
if (!token) return null;
|
if (!token) return null;
|
||||||
return extractUsernameFromToken(token);
|
return extractUsernameFromToken(token);
|
||||||
};
|
};
|
||||||
|
|
||||||
// ============================================
|
|
||||||
// AUTH
|
|
||||||
// ============================================
|
|
||||||
|
|
||||||
export interface AuthResponse {
|
export interface AuthResponse {
|
||||||
success: boolean;
|
success: boolean;
|
||||||
message?: string;
|
message?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user