UNPKG

@hellocoop/api

Version:

Client API for Hellō https://hello.dev

12 lines 562 B
import { Auth } from '@hellocoop/definitions'; import { HelloRequest, HelloResponse } from '../types'; import { SerializeOptions } from 'cookie'; export declare const saveAuthCookie: (res: HelloResponse, auth: Auth) => Promise<boolean>; export declare const clearAuthCookie: (res: HelloResponse) => void; export declare const clearAuthCookieParams: () => { name: string; value: string; options: SerializeOptions; }; export declare const getAuthfromCookies: (req: HelloRequest, res?: HelloResponse) => Promise<Auth>; //# sourceMappingURL=auth.d.ts.map