torta-js 1.0.0 → 1.1.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.
Files changed (2) hide show
  1. package/index.js +5 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -112,6 +112,11 @@ export function createClient(baseUrl, apiKey) {
112
112
  async resetPassword(token, password, repeat_password) {
113
113
  return req("POST", "/api/reset-password", { token, password, repeat_password });
114
114
  },
115
+
116
+ /** Redirect to Google OAuth login for this store (full page redirect). */
117
+ googleLogin() {
118
+ window.location.href = `${base}/api/auth/google/login`;
119
+ },
115
120
  },
116
121
 
117
122
  // ── Products ─────────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "torta-js",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "JavaScript client SDK for Torta CRM — connect your storefront to the API in one line",
5
5
  "type": "module",
6
6
  "main": "index.js",