1 | ;
|
2 | /*
|
3 | * @adonisjs/auth
|
4 | *
|
5 | * (c) Harminder Virk <virk@adonisjs.com>
|
6 | *
|
7 | * For the full copyright and license information, please view the LICENSE
|
8 | * file that was distributed with this source code.
|
9 | */
|
10 | Object.defineProperty(exports, "__esModule", { value: true });
|
11 | exports.ProviderToken = void 0;
|
12 | /**
|
13 | * Token returned and accepted by the token providers
|
14 | */
|
15 | class ProviderToken {
|
16 | constructor(name, // Name associated with the token
|
17 | tokenHash, // The hash to persist
|
18 | userId, // The user for which the token is generated
|
19 | type // The type of the token.
|
20 | ) {
|
21 | this.name = name;
|
22 | this.tokenHash = tokenHash;
|
23 | this.userId = userId;
|
24 | this.type = type;
|
25 | }
|
26 | }
|
27 | exports.ProviderToken = ProviderToken;
|