@sanvika/auth 2.6.0 → 2.6.1

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/index.js CHANGED
@@ -19,7 +19,7 @@ var DEFAULT_AVATAR_SVG = `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/200
19
19
 
20
20
  // SanvikaAuthProvider.jsx
21
21
  import { jsx } from "react/jsx-runtime";
22
- var S_AUTH_URL = "https://accounts.sanvikaproduction.com";
22
+ var S_AUTH_URL = "https://auth.sanvikaproduction.com";
23
23
  var SanvikaAuthContext = createContext(null);
24
24
  function randomDeviceId() {
25
25
  try {
@@ -196,7 +196,7 @@ styleInject("@keyframes snvk-shimmer {\n 0% {\n background-position: 200% 0;
196
196
 
197
197
  // SanvikaAccountButton.jsx
198
198
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
199
- var S_AUTH_URL2 = "https://accounts.sanvikaproduction.com";
199
+ var S_AUTH_URL2 = "https://auth.sanvikaproduction.com";
200
200
  var SanvikaAccountButtonErrorBoundary = class extends Component {
201
201
  constructor(props) {
202
202
  super(props);
@@ -304,7 +304,7 @@ function SanvikaAccountButtonContent({
304
304
  if (onLoginClick) {
305
305
  onLoginClick();
306
306
  } else {
307
- window.location.href = "https://accounts.sanvikaproduction.com/authorize";
307
+ window.location.href = "https://auth.sanvikaproduction.com/authorize";
308
308
  }
309
309
  },
310
310
  "aria-label": "Login or Sign Up",
@@ -359,7 +359,7 @@ function SanvikaAccountButtonContent({
359
359
  const imageSrc = !imgError && user.image ? user.image : DEFAULT_AVATAR_SVG;
360
360
  const handleProfileClick = () => {
361
361
  if (onProfileClick) return onProfileClick();
362
- window.location.href = (auth == null ? void 0 : auth.dashboardPath) || "https://accounts.sanvikaproduction.com/dashboard";
362
+ window.location.href = (auth == null ? void 0 : auth.dashboardPath) || "https://auth.sanvikaproduction.com/dashboard";
363
363
  };
364
364
  const handleLogout = async () => {
365
365
  await logout(false);
package/dist/server.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const _authUrl = () => {
2
2
  var _a;
3
- return typeof process !== "undefined" && ((_a = process.env) == null ? void 0 : _a.AUTH_URL) || "https://accounts.sanvikaproduction.com";
3
+ return typeof process !== "undefined" && ((_a = process.env) == null ? void 0 : _a.AUTH_URL) || "https://auth.sanvikaproduction.com";
4
4
  };
5
5
  const _serviceKey = () => {
6
6
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanvika/auth",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Sanvika Auth SDK — React components/hooks + server-side token verification and user proxy",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",