@adonisjs/auth
Advanced tools
Comparing version 4.2.1 to 4.2.2
@@ -410,2 +410,6 @@ declare module '@ioc:Adonis/Addons/Auth' { | ||
/** | ||
* Generate token for a user without any verification | ||
*/ | ||
generate(user: GetProviderRealUser<Provider>, options?: OATLoginOptions): Promise<OpaqueTokenContract<GetProviderRealUser<Provider>>>; | ||
/** | ||
* Login a user using their id | ||
@@ -412,0 +416,0 @@ */ |
@@ -118,2 +118,6 @@ /// <reference types="@adonisjs/events/build/adonis-typings/events" /> | ||
/** | ||
* Generate token for a user. It is merely an alias for `login` | ||
*/ | ||
generate(user: any, options?: OATLoginOptions): Promise<any>; | ||
/** | ||
* Login a user | ||
@@ -120,0 +124,0 @@ */ |
@@ -221,2 +221,8 @@ "use strict"; | ||
/** | ||
* Generate token for a user. It is merely an alias for `login` | ||
*/ | ||
async generate(user, options) { | ||
return this.login(user, options); | ||
} | ||
/** | ||
* Login a user | ||
@@ -223,0 +229,0 @@ */ |
{ | ||
"name": "@adonisjs/auth", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "Offical authentication provider for Adonis framework", | ||
@@ -51,3 +51,3 @@ "types": "build/adonis-typings/index.d.ts", | ||
"@adonisjs/hash": "^3.1.1", | ||
"@adonisjs/lucid": "^8.2.1", | ||
"@adonisjs/lucid": "^8.2.2", | ||
"@adonisjs/mrm-preset": "^2.3.0", | ||
@@ -54,0 +54,0 @@ "@adonisjs/profiler": "^3.0.4", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138067
3697