Comparing version 4.1.0 to 5.0.0
@@ -20,6 +20,2 @@ import IdentityProvider from './IdentityProvider'; | ||
class Limes { | ||
/* eslint-disable @typescript-eslint/member-naming */ | ||
public static IdentityProvider = IdentityProvider; | ||
/* eslint-enable @typescript-eslint/member-naming */ | ||
public identityProviders: IdentityProvider[]; | ||
@@ -211,1 +207,4 @@ | ||
export default Limes; | ||
export { | ||
IdentityProvider | ||
}; |
{ | ||
"name": "limes", | ||
"version": "4.1.0", | ||
"version": "5.0.0", | ||
"description": "limes authenticates users.", | ||
@@ -30,3 +30,3 @@ "contributors": [ | ||
"express": "4.17.1", | ||
"roboter": "7.1.2", | ||
"roboter": "7.1.5", | ||
"supertest": "4.0.2", | ||
@@ -33,0 +33,0 @@ "uuidv4": "5.0.0" |
@@ -26,2 +26,4 @@ # limes | ||
```javascript | ||
const { default: Limes, IdentityProvider } = require('limes'); | ||
// or just | ||
const Limes = require('limes').default; | ||
@@ -33,9 +35,9 @@ ``` | ||
```typescript | ||
import Limes from 'limes'; | ||
import Limes, { IdentityProvider } from 'limes'; | ||
``` | ||
Now you need to create one or more identity providers. For each identity provider call the `Limes.IdentityProvider` constructor and hand over the `issuer` as well as a `privateKey` or a `certificate`, each in `.pem` format. Optionally, you may provide both: | ||
Now you need to create one or more identity providers. For each identity provider call the `IdentityProvider` constructor and hand over the `issuer` as well as a `privateKey` or a `certificate`, each in `.pem` format. Optionally, you may provide both: | ||
```javascript | ||
const identityProvider = new Limes.IdentityProvider({ | ||
const identityProvider = new IdentityProvider({ | ||
issuer: 'https://auth.thenativeweb.io', | ||
@@ -42,0 +44,0 @@ privateKey: await readFile(path.join(__dirname, 'privateKey.pem')), |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
155
14477
7
211
1