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

react-oauth2-code-pkce

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-oauth2-code-pkce - npm Package Compare versions

Comparing version 1.2.2-c to 1.2.3

4

dist/AuthContext.d.ts
import React from 'react';
import { IAuthProvider } from "./Types";
export declare const AuthContext: React.Context<{}>;
import { IAuthContext, IAuthProvider } from "./Types";
export declare const AuthContext: React.Context<IAuthContext>;
export declare const AuthProvider: ({ authConfig, children }: IAuthProvider) => JSX.Element;

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

var validateAuthConfig_1 = require("./validateAuthConfig");
exports.AuthContext = (0, react_1.createContext)({});
exports.AuthContext = (0, react_1.createContext)({ token: '', logOut: function () { return null; }, error: null });
var AuthProvider = function (_a) {

@@ -37,0 +37,0 @@ var authConfig = _a.authConfig, children = _a.children;

@@ -1,2 +0,2 @@

import { ReactChildren } from "react";
import { ReactNode } from "react";
export declare type TTokenData = {

@@ -8,4 +8,11 @@ exp: number;

authConfig: TAuthConfig;
children: ReactChildren;
children: ReactNode;
}
export interface IAuthContext {
token: string;
logOut: () => void;
error: any;
tokenData?: TTokenData | null;
idToken?: string;
}
export declare type TAuthConfig = {

@@ -12,0 +19,0 @@ clientId: string;

{
"name": "react-oauth2-code-pkce",
"version": "1.2.2c",
"version": "1.2.3",
"description": "Plug-and-play react package for OAuth2 Authorization Code flow with PKCE",

@@ -5,0 +5,0 @@ "main": "dist/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