UNPKG

@replyke/core

Version:

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

35 lines (34 loc) 1.87 kB
import type { ReplykeState } from '../replykeReducers'; import type { AuthUser } from '../../interfaces/models/User'; export interface AuthState { accessToken: string | null; refreshToken: string | null; user: AuthUser | null; isAuthenticating: boolean; initialized: boolean; signedToken: string | null; } export declare const setTokens: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ accessToken: string | null; refreshToken?: string | null; }, "auth/setTokens">, clearTokens: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/clearTokens">, setUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<AuthUser | null, "auth/setUser">, setAuthenticating: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "auth/setAuthenticating">, setInitialized: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "auth/setInitialized">, setSignedToken: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "auth/setSignedToken">, resetAuth: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/resetAuth">, setRefreshToken: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "auth/setRefreshToken">; export declare const selectAccessToken: (state: { replyke: ReplykeState; }) => string | null; export declare const selectRefreshToken: (state: { replyke: ReplykeState; }) => string | null; export declare const selectUser: (state: { replyke: ReplykeState; }) => AuthUser | null; export declare const selectIsAuthenticating: (state: { replyke: ReplykeState; }) => boolean; export declare const selectInitialized: (state: { replyke: ReplykeState; }) => boolean; export declare const selectSignedToken: (state: { replyke: ReplykeState; }) => string | null; declare const _default: import("@reduxjs/toolkit").Reducer<AuthState>; export default _default;