alinea
Version:
[](https://npmjs.org/package/alinea) [](https://packagephobia.com/result?p=alinea)
17 lines (16 loc) • 374 B
TypeScript
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;
};