@wopr-network/platform-ui-core 1.27.1 → 1.27.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wopr-network/platform-ui-core",
3
- "version": "1.27.1",
3
+ "version": "1.27.2",
4
4
  "description": "Brand-agnostic AI agent platform UI — deploy as any brand via env vars",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,9 +26,12 @@ export function OAuthButtons({ callbackUrl = "/" }: OAuthButtonsProps) {
26
26
  async function handleOAuth(provider: string) {
27
27
  setLoading(provider);
28
28
  try {
29
+ const absoluteCallback = callbackUrl.startsWith("http")
30
+ ? callbackUrl
31
+ : `${window.location.origin}${callbackUrl}`;
29
32
  await signIn.social({
30
33
  provider,
31
- callbackURL: callbackUrl,
34
+ callbackURL: absoluteCallback,
32
35
  });
33
36
  } catch {
34
37
  // signIn.social redirects on success; failure here means the redirect didn't happen