@rool-dev/extension 0.3.12-dev.2477498 → 0.3.12-dev.586f1cb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dev/host-shell.js
CHANGED
|
@@ -4556,11 +4556,12 @@ var BrowserAuthProvider = class {
|
|
|
4556
4556
|
* Initiate login by redirecting to auth page.
|
|
4557
4557
|
* @param appName - The name of the application requesting login (displayed on auth page)
|
|
4558
4558
|
*/
|
|
4559
|
-
login(appName) {
|
|
4559
|
+
login(appName, options) {
|
|
4560
4560
|
const loginUrl = new URL(`${this.authBaseUrl}/`);
|
|
4561
4561
|
const redirectTarget = window.location.origin + window.location.pathname + window.location.search;
|
|
4562
4562
|
loginUrl.searchParams.set("redirect_uri", redirectTarget);
|
|
4563
4563
|
loginUrl.searchParams.set("app_name", appName);
|
|
4564
|
+
if (options?.signup) loginUrl.searchParams.set("signup", "true");
|
|
4564
4565
|
const state = this.generateState();
|
|
4565
4566
|
this.storeState(state);
|
|
4566
4567
|
loginUrl.searchParams.set("state", state);
|
|
@@ -4833,8 +4834,8 @@ var AuthManager = class {
|
|
|
4833
4834
|
* Initiate login.
|
|
4834
4835
|
* @param appName - The name of the application requesting login (displayed on auth page)
|
|
4835
4836
|
*/
|
|
4836
|
-
login(appName) {
|
|
4837
|
-
return this.provider.login(appName);
|
|
4837
|
+
login(appName, options) {
|
|
4838
|
+
return this.provider.login(appName, options);
|
|
4838
4839
|
}
|
|
4839
4840
|
/**
|
|
4840
4841
|
* Logout - clear all tokens and state.
|
|
@@ -8621,8 +8622,8 @@ var RoolClient = class extends EventEmitter {
|
|
|
8621
8622
|
* Initiate login by redirecting to auth page.
|
|
8622
8623
|
* @param appName - The name of the application requesting login (displayed on auth page)
|
|
8623
8624
|
*/
|
|
8624
|
-
async login(appName) {
|
|
8625
|
-
return this.authManager.login(appName);
|
|
8625
|
+
async login(appName, options) {
|
|
8626
|
+
return this.authManager.login(appName, options);
|
|
8626
8627
|
}
|
|
8627
8628
|
/**
|
|
8628
8629
|
* Logout - clear all tokens and state.
|