UNPKG

loopback4-authentication

Version:

A loopback-next extension for authentication feature. Various Oauth strategies supported by this package.

21 lines (20 loc) 577 B
import { AnyObject } from '@loopback/repository'; export declare namespace Cognito { interface StrategyOptions { callbackURL: string; clientDomain: string; clientID: string; clientSecret: string; region: string; passReqToCallback?: boolean; } interface Profile { email: string; username: string; sub: string; name?: string; phone_number?: string; [key: string]: any; } type VerifyCallback = (err?: string | Error, user?: AnyObject, info?: AnyObject) => void; }