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.
- package/index.js +5 -0
- 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 ─────────────────────────────────────────────────────────────
|