UNPKG

648 BTypeScriptView Raw
1import { DateTime } from 'luxon';
2import { ProviderTokenContract } from '@ioc:Adonis/Addons/Auth';
3/**
4 * Token returned and accepted by the token providers
5 */
6export declare class ProviderToken implements ProviderTokenContract {
7 name: string;
8 tokenHash: string;
9 userId: string | number;
10 type: string;
11 /**
12 * Expiry date
13 */
14 expiresAt?: DateTime;
15 /**
16 * All other token details
17 */
18 meta?: any;
19 constructor(name: string, // Name associated with the token
20 tokenHash: string, // The hash to persist
21 userId: string | number, // The user for which the token is generated
22 type: string);
23}