@obelisk/auth
Advanced tools
Comparing version 3.3.1 to 3.4.0
@@ -50,2 +50,6 @@ import { AuthEvent, ObeliskAuth } from './auth'; | ||
getLoginUrl(state?: string): Promise<string>; | ||
/** | ||
* Returns the required login body as a promise. Use this body to post a login. | ||
* @param state A state paramters that will be returned to the registered redirectUri after logging in. | ||
*/ | ||
getLoginBody(state?: string): Promise<any>; | ||
@@ -52,0 +56,0 @@ /** |
@@ -43,7 +43,2 @@ import { ObeliskConfig, Tokens } from './types'; | ||
/** | ||
* Returns the required login body as a promise. Use this body to post a login. | ||
* @param state A state paramters that will be returned to the registered redirectUri after logging in. | ||
*/ | ||
getLoginBody(state?: string): Promise<any>; | ||
/** | ||
* Whether the current session is a rembember_me session | ||
@@ -50,0 +45,0 @@ */ |
@@ -375,3 +375,2 @@ var AuthEventType; | ||
_a.code_challenge_method = 'S256', | ||
// remember_me: rememberMe, | ||
_a.state = state || encodeURIComponent(btoa('/')), | ||
@@ -387,2 +386,6 @@ _a); | ||
}; | ||
/** | ||
* Returns the required login body as a promise. Use this body to post a login. | ||
* @param state A state paramters that will be returned to the registered redirectUri after logging in. | ||
*/ | ||
ObeliskAuthClient.prototype.getLoginBody = function (state) { | ||
@@ -404,3 +407,2 @@ return __awaiter(this, void 0, void 0, function () { | ||
_a.code_challenge_method = 'S256', | ||
// remember_me: rememberMe, | ||
_a.state = state || encodeURIComponent(btoa('/')), | ||
@@ -407,0 +409,0 @@ _a); |
@@ -378,3 +378,2 @@ 'use strict'; | ||
_a.code_challenge_method = 'S256', | ||
// remember_me: rememberMe, | ||
_a.state = state || encodeURIComponent(btoa('/')), | ||
@@ -390,2 +389,6 @@ _a); | ||
}; | ||
/** | ||
* Returns the required login body as a promise. Use this body to post a login. | ||
* @param state A state paramters that will be returned to the registered redirectUri after logging in. | ||
*/ | ||
ObeliskAuthClient.prototype.getLoginBody = function (state) { | ||
@@ -407,3 +410,2 @@ return __awaiter(this, void 0, void 0, function () { | ||
_a.code_challenge_method = 'S256', | ||
// remember_me: rememberMe, | ||
_a.state = state || encodeURIComponent(btoa('/')), | ||
@@ -410,0 +412,0 @@ _a); |
{ | ||
"name": "@obelisk/auth", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1221
153204