@authgate/browser 0.5.1 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -164,7 +164,7 @@ export async function refreshSession(audience = "app") {
164
164
  export async function getCurrentUser(opts) {
165
165
  let res;
166
166
  try {
167
- res = await authFetch("/auth/user", { method: "GET" }, { audience: opts?.audience ?? "app" });
167
+ res = await authFetch("/auth/api/v1/user", { method: "GET" }, { audience: opts?.audience ?? "app" });
168
168
  }
169
169
  catch {
170
170
  return null;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/alexlup06-authgate/authgate-browser.git"
6
6
  },
7
- "version": "0.5.1",
7
+ "version": "0.5.2",
8
8
  "description": "Browser-side helpers for AuthGate (logout, CSRF forwarding)",
9
9
  "license": "MIT",
10
10
  "type": "module",