Socket
Socket
Sign inDemoInstall

oidc-react

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oidc-react - npm Package Compare versions

Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2

10

build/src/AuthContext.d.ts

@@ -25,2 +25,12 @@ import React, { FC } from 'react';

/**
* Tells the authorization server which grant to execute
*
* Read more: https://tools.ietf.org/html/rfc6749#section-3.1.1
*/
responseType?: string;
/**
* A space-delimited list of permissions that the application requires.
*/
scope?: string;
/**
* Defaults to `windows.location`.

@@ -27,0 +37,0 @@ */

6

build/src/AuthContext.js

@@ -16,3 +16,3 @@ import React, { useState, useEffect } from 'react';

if (!userManager) {
const { authority, clientId, redirectUri } = props;
const { authority, clientId, redirectUri, responseType, scope, } = props;
userManager = new UserManager({

@@ -24,4 +24,4 @@ authority,

post_logout_redirect_uri: redirectUri,
response_type: 'code',
scope: 'openid',
response_type: responseType || 'code',
scope: scope || 'openid',
loadUserInfo: true,

@@ -28,0 +28,0 @@ });

@@ -6,2 +6,9 @@ # Changelog

# [1.0.0-alpha.2](https://github.com/bjerkio/oidc-react/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2020-04-09)
### Features
* Add responseType and scope properties ([e00454a](https://github.com/bjerkio/oidc-react/commit/e00454a50606d287063a3134cfe3740e2ee360f8))
# 1.0.0-alpha.1 (2020-04-09)

@@ -8,0 +15,0 @@

{
"name": "oidc-react",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"private": false,

@@ -5,0 +5,0 @@ "description": "",

@@ -14,7 +14,7 @@ # OIDC React

![oidc-react logo](assets/logo.png)
![oidc-react logo](assets/logo.jpg)
## About
React component (AuthContext) to provide OpenID Connect and OAuth2 protocol support. Has [hooks](guides/HOOKS.md) 🎉
React component (AuthProvider) to provide OpenID Connect and OAuth2 protocol support. Has [hooks](guides/HOOKS.md) 🎉

@@ -21,0 +21,0 @@ Based on [oidc-client-js](https://github.com/IdentityModel/oidc-client-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