@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/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-U3Dcm1Dt.js";
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-U3Dcm1Dt.js";
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") {