UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

17 lines (16 loc) 374 B
import { User } from 'alinea/core/User'; export declare enum AuthResultType { Authenticated = 0, UnAuthenticated = 1, MissingApiKey = 2 } export type AuthResult = { type: AuthResultType.Authenticated; user: User; } | { type: AuthResultType.UnAuthenticated; redirect: string; } | { type: AuthResultType.MissingApiKey; setupUrl: string; };