@autogames/sdk 1.6.0 → 1.7.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.
- package/dist/autogames-sdk.esm.js +1 -1
- package/dist/autogames-sdk.js +267 -267
- package/dist/{basic-DV6TdjBr.js → basic-BW9Z2ft2.js} +3 -3
- package/dist/{ccip-ztp95LKl.js → ccip-y7RKuBS9.js} +1 -1
- package/dist/{core-CXtJRzmk.js → core-DyWKd6vD.js} +5 -5
- package/dist/{features-BHCRYoZV.js → features-B_cBufJ4.js} +1 -1
- package/dist/{index-BFXOCwz7.js → index-2I7bW0qt.js} +2 -2
- package/dist/{index-Qkvrcl05.js → index-BeuJrMmG.js} +1 -1
- package/dist/{index-Dyc59rXu.js → index-lr-bESNE.js} +4 -4
- package/dist/{main-U3Dcm1Dt.js → main-ftwh8412.js} +5722 -5696
- package/dist/main.d.ts +7 -0
- package/dist/{parseSignature-C95pV-l4.js → parseSignature-BQgOdWw6.js} +1 -1
- package/dist/{secp256k1-woYfdRaQ.js → secp256k1-HKgKf8Kb.js} +1 -1
- package/dist/stats-confirm.html +1 -1
- package/dist/{w3m-modal-BaYsio8m.js → w3m-modal-DHPBbbVB.js} +2 -2
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -111,6 +111,13 @@ declare class AutoGamesSDKClass {
|
|
|
111
111
|
* Get current authentication state
|
|
112
112
|
*/
|
|
113
113
|
getAuthState(): AuthState;
|
|
114
|
+
/**
|
|
115
|
+
* Get a fresh access token, refreshing it if needed.
|
|
116
|
+
* Use this when you need to pass the token to your own backend.
|
|
117
|
+
* @returns Fresh access token
|
|
118
|
+
* @throws Error if not authenticated or refresh fails
|
|
119
|
+
*/
|
|
120
|
+
getAccessToken(): Promise<string>;
|
|
114
121
|
/**
|
|
115
122
|
* Mount the chat widget
|
|
116
123
|
* @param options - Optional widget configuration (position)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as m, bV as y, bI as w, a5 as x, bX as p, cj as z, cg as M, d9 as k, ci as d, da as T, Z as E, db as N, a4 as P, dc as S, bx as B, dd as L, cc as $, de as A } from "./main-
|
|
1
|
+
import { M as m, bV as y, bI as w, a5 as x, bX as p, cj as z, cg as M, d9 as k, ci as d, da as T, Z as E, db as N, a4 as P, dc as S, bx as B, dd as L, cc as $, de as A } from "./main-ftwh8412.js";
|
|
2
2
|
function H(s, e) {
|
|
3
3
|
if (s.length !== e.length)
|
|
4
4
|
throw new m({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { df as nt, dg as qt, dh as ht, di as ue, dj as D, dk as ae, dl as le, dm as Ct, dn as de, dp as he } from "./main-
|
|
1
|
+
import { df as nt, dg as qt, dh as ht, di as ue, dj as D, dk as ae, dl as le, dm as Ct, dn as de, dp as he } from "./main-ftwh8412.js";
|
|
2
2
|
const Nt = /* @__PURE__ */ BigInt(0), xt = /* @__PURE__ */ BigInt(1);
|
|
3
3
|
function wt(e, n = "") {
|
|
4
4
|
if (typeof e != "boolean") {
|