@volr/react 0.1.8 → 0.1.9
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1966,10 +1966,10 @@ function useVolrLogin() {
|
|
|
1966
1966
|
async (provider) => {
|
|
1967
1967
|
if (typeof window !== "undefined") {
|
|
1968
1968
|
const baseUrl = apiBaseUrl.replace(/\/+$/, "");
|
|
1969
|
-
window.location.href = `${baseUrl}/auth/${provider}`;
|
|
1969
|
+
window.location.href = `${baseUrl}/auth/${provider}?projectApiKey=${encodeURIComponent(config.projectApiKey)}`;
|
|
1970
1970
|
}
|
|
1971
1971
|
},
|
|
1972
|
-
[apiBaseUrl]
|
|
1972
|
+
[apiBaseUrl, config.projectApiKey]
|
|
1973
1973
|
);
|
|
1974
1974
|
const requestSiweNonce = useCallback(async () => {
|
|
1975
1975
|
const response = await api.get("/auth/siwe/nonce");
|