@authvia/payment-method-create 0.7.0 → 0.8.0
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.
|
@@ -46,6 +46,21 @@ declare class AuthviaPaymentMethodFormElement extends HTMLElement {
|
|
|
46
46
|
*/
|
|
47
47
|
private syncContainerThemeTokens;
|
|
48
48
|
private getComponentProps;
|
|
49
|
+
/**
|
|
50
|
+
* Resolves the bare API hostname using two sources in priority order:
|
|
51
|
+
*
|
|
52
|
+
* 1. **Token `iss` claim** — stripped of `https://` prefix and trailing slashes.
|
|
53
|
+
* 2. **CDN script URL** (`WC_SCRIPT_URL`) — maps well-known hostname patterns
|
|
54
|
+
* (`nonprod`, `dev-authvia`, `authvia`) to the corresponding API host.
|
|
55
|
+
*
|
|
56
|
+
* Returns an empty string when neither source yields a usable value.
|
|
57
|
+
*/
|
|
58
|
+
private resolveApiHost;
|
|
59
|
+
/**
|
|
60
|
+
* Applies resolved API host and Plaid environment to `useHostService`.
|
|
61
|
+
* No-op when neither the token `iss` nor the CDN script URL yields a host.
|
|
62
|
+
*/
|
|
63
|
+
private applyHostConfigFromToken;
|
|
49
64
|
private dispatchCustomEvent;
|
|
50
65
|
static get observedAttributes(): string[];
|
|
51
66
|
connectedCallback(): void;
|
|
@@ -5,6 +5,8 @@ export interface TokenPayload {
|
|
|
5
5
|
sub?: string;
|
|
6
6
|
azp?: string;
|
|
7
7
|
exp?: number;
|
|
8
|
+
/** Token issuer — typically the Authvia API base hostname, e.g. `'api.authvia.com'` */
|
|
9
|
+
iss?: string;
|
|
8
10
|
/** Space-separated list of scopes */
|
|
9
11
|
scope?: string;
|
|
10
12
|
/** Authvia user UUID claim */
|