New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vyro-x/react-auth

Package Overview
Dependencies
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vyro-x/react-auth - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

3

lib/EmbeddedAuth.d.ts

@@ -5,7 +5,8 @@ import { AuthArgs } from './types';

action: AuthAction;
onAuth: (user: {
onAuth?: (user: {
id: string;
}) => any;
onLogout?: () => any;
authArgs?: AuthArgs;
};
export declare const EmbeddedAuth: (props: EmbeddedAuthProps) => import("react/jsx-runtime").JSX.Element;

@@ -13,3 +13,3 @@ "use strict";

const EmbeddedAuth = (props) => {
const { action, onAuth, authArgs } = props;
const { action, onAuth, onLogout, authArgs } = props;
const config = (0, config_1.getConfig)();

@@ -32,2 +32,9 @@ const [height, setHeight] = (0, react_1.useState)(0);

}
if (data.code === 'logout') {
// Refresh the auth context to reflect the logged out user
auth.checkIsAuthenticated();
if (typeof onLogout === 'function') {
onLogout();
}
}
if (data.code === 'height') {

@@ -34,0 +41,0 @@ setHeight(data.payload.height);

{
"name": "@vyro-x/react-auth",
"description": "Client authentication",
"version": "1.0.13",
"version": "1.0.14",
"private": false,

@@ -6,0 +6,0 @@ "main": "lib/index.js",

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