UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

33 lines (32 loc) 979 B
export interface UseAuthValues { loadingInitial: boolean; accessToken: string | null; refreshToken: string | null; setRefreshToken: React.Dispatch<React.SetStateAction<string | null>>; signUpWithEmailAndPassword: (props: { email: string; password: string; name?: string; username?: string; avatar?: string; bio?: string; location?: { latitude: number; longitude: number; }; birthdate?: Date; metadata?: Record<string, any>; secureMetadata?: Record<string, any>; }) => Promise<void>; signInWithEmailAndPassword: (props: { email: string; password: string; }) => Promise<void>; signOut: () => Promise<void>; changePassword: (props: { password: string; newPassword: string; }) => Promise<void>; requestNewAccessToken: () => Promise<void>; } export default function useAuth(): UseAuthValues;