@entur/auth-provider
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -68,4 +68,6 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
logout: logout, | ||
login: function login() { | ||
return loginWithRedirect(); | ||
login: function login(redirectUri) { | ||
return loginWithRedirect({ | ||
redirectUri: redirectUri | ||
}); | ||
} | ||
@@ -72,0 +74,0 @@ } |
@@ -65,4 +65,6 @@ import React, { useState, useEffect, useContext } from 'react'; | ||
logout: logout, | ||
login: function login() { | ||
return loginWithRedirect(); | ||
login: function login(redirectUri) { | ||
return loginWithRedirect({ | ||
redirectUri: redirectUri | ||
}); | ||
} | ||
@@ -69,0 +71,0 @@ } |
{ | ||
"name": "@entur/auth-provider", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "React components and helpers for authentication", | ||
@@ -29,3 +29,3 @@ "author": "entur/nrp", | ||
"peerDependencies": { | ||
"react": "^16.0.0" | ||
"react": "^16.0.0 || ^17.0.0 || ^18.0.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21797
217