@marsaude/devtools-shell 0.1.0 → 0.1.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marsaude/devtools-shell",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Self-contained draggable DevTools FAB for QA (admin login, CPF/OTP user login, user generator, session switch). Isolated HttpClient/auth, gated out of production.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Mar Saúde",
|
|
@@ -47,9 +47,15 @@ interface DevtoolsConfig {
|
|
|
47
47
|
locale?: string;
|
|
48
48
|
/** Google OAuth client id for the admin login. */
|
|
49
49
|
googleClientId?: string;
|
|
50
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Google OAuth redirect_uri. Required for the Google admin login and must
|
|
52
|
+
* match EXACTLY a URI whitelisted in the Google OAuth client (no silent
|
|
53
|
+
* fallback — login is skipped with an error if missing).
|
|
54
|
+
*/
|
|
51
55
|
googleRedirectUri?: string;
|
|
52
|
-
/** reCAPTCHA
|
|
56
|
+
/** reCAPTCHA v2 Invisible site key (optional). The package loads the script
|
|
57
|
+
* and renders an invisible widget itself; without it the OTP request is sent
|
|
58
|
+
* with an empty token. */
|
|
53
59
|
recaptchaSiteKey?: string;
|
|
54
60
|
/** Fixed RH organization id used by the generator. Default 200. */
|
|
55
61
|
fixedOrgId?: number;
|
|
@@ -254,6 +260,8 @@ declare class DevtoolsAuthService {
|
|
|
254
260
|
* for admin JWTs and loads the admin profile.
|
|
255
261
|
*/
|
|
256
262
|
handleGoogleReturn(): void;
|
|
263
|
+
/** Strip the OAuth fragment/query so a reload doesn't re-trigger the return. */
|
|
264
|
+
private cleanOAuthUrl;
|
|
257
265
|
exchangeGoogle(googleToken: string): Observable<any>;
|
|
258
266
|
/** Used by the interceptor on 401. */
|
|
259
267
|
refresh(): Observable<TokenResponse>;
|