Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@oxyhq/services

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oxyhq/services - npm Package Compare versions

Comparing version 0.0.27 to 0.0.28

8

dist/components/auth/SignInButton.js
import React from "react";
import styles from "./styles/sign-in-button.module.css";
import { OxyLogo } from "../assets/oxy-logo";
export const SignInButton = ({ icon = React.createElement(OxyLogo, null), text = "Sign in with Oxy", callback = window.location.href, }) => {
export const SignInButton = ({ icon = React.createElement(OxyLogo, null), text = "Sign in with Oxy", callback = typeof window !== "undefined" ? window.location.href : "", }) => {
const onClick = () => {
const redirectUrl = `https://auth.oxy.so/?callback=${encodeURIComponent(callback)}`;
window.location.href = redirectUrl;
if (typeof window !== "undefined") {
const redirectUrl = `https://auth.oxy.so/?callback=${encodeURIComponent(callback)}`;
window.location.href = redirectUrl;
}
};

@@ -9,0 +11,0 @@ return (React.createElement("button", { onClick: onClick, className: styles.container },

{
"name": "@oxyhq/services",
"version": "0.0.27",
"version": "0.0.28",
"description": "",

@@ -5,0 +5,0 @@ "homepage": "https://oxy.so/",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc