@theshelf/authentication 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definitions/interfaces.d.ts +1 -1
- package/dist/errors/LoginFailed.d.ts +1 -1
- package/dist/errors/LoginFailed.js +1 -1
- package/dist/errors/NotConnected.d.ts +1 -1
- package/dist/errors/NotConnected.js +1 -1
- package/dist/errors/UnknownImplementation.d.ts +1 -1
- package/dist/errors/UnknownImplementation.js +1 -1
- package/dist/implementation.d.ts +1 -1
- package/dist/implementation.js +2 -2
- package/dist/implementations/openid/OpenID.d.ts +2 -2
- package/dist/implementations/openid/OpenID.js +2 -2
- package/dist/implementations/openid/create.d.ts +1 -1
- package/dist/implementations/openid/create.js +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AuthenticationError from './AuthenticationError';
|
|
1
|
+
import AuthenticationError from './AuthenticationError.js';
|
|
2
2
|
export default class UnknownImplementation extends AuthenticationError {
|
|
3
3
|
constructor(name) {
|
|
4
4
|
super(`Unknown authentication implementation: ${name}`);
|
package/dist/implementation.d.ts
CHANGED
package/dist/implementation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import UnknownImplementation from './errors/UnknownImplementation';
|
|
2
|
-
import createOpenID from './implementations/openid/create';
|
|
1
|
+
import UnknownImplementation from './errors/UnknownImplementation.js';
|
|
2
|
+
import createOpenID from './implementations/openid/create.js';
|
|
3
3
|
const implementations = new Map([
|
|
4
4
|
['openid', createOpenID],
|
|
5
5
|
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IdentityProvider } from '../../definitions/interfaces';
|
|
2
|
-
import type { Session } from '../../definitions/types';
|
|
1
|
+
import type { IdentityProvider } from '../../definitions/interfaces.js';
|
|
2
|
+
import type { Session } from '../../definitions/types.js';
|
|
3
3
|
type OpenIDConfiguration = {
|
|
4
4
|
issuer: string;
|
|
5
5
|
clientId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { allowInsecureRequests, authorizationCodeGrant, buildAuthorizationUrlWithPAR, calculatePKCECodeChallenge, discovery, fetchUserInfo, randomPKCECodeVerifier, refreshTokenGrant, tokenRevocation } from 'openid-client';
|
|
2
|
-
import LoginFailed from '../../errors/LoginFailed';
|
|
3
|
-
import NotConnected from '../../errors/NotConnected';
|
|
2
|
+
import LoginFailed from '../../errors/LoginFailed.js';
|
|
3
|
+
import NotConnected from '../../errors/NotConnected.js';
|
|
4
4
|
export default class OpenID {
|
|
5
5
|
#providerConfiguration;
|
|
6
6
|
#clientConfiguration;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import OpenID from './OpenID';
|
|
1
|
+
import OpenID from './OpenID.js';
|
|
2
2
|
export default function create(): OpenID;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './definitions/interfaces';
|
|
2
|
-
export * from './definitions/types';
|
|
3
|
-
export { default as AuthenticationError } from './errors/AuthenticationError';
|
|
4
|
-
export { default as NotConnected } from './errors/NotConnected';
|
|
5
|
-
export { default as UnknownImplementation } from './errors/UnknownImplementation';
|
|
6
|
-
export { default } from './implementation';
|
|
1
|
+
export * from './definitions/interfaces.js';
|
|
2
|
+
export * from './definitions/types.js';
|
|
3
|
+
export { default as AuthenticationError } from './errors/AuthenticationError.js';
|
|
4
|
+
export { default as NotConnected } from './errors/NotConnected.js';
|
|
5
|
+
export { default as UnknownImplementation } from './errors/UnknownImplementation.js';
|
|
6
|
+
export { default } from './implementation.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './definitions/interfaces';
|
|
2
|
-
export * from './definitions/types';
|
|
3
|
-
export { default as AuthenticationError } from './errors/AuthenticationError';
|
|
4
|
-
export { default as NotConnected } from './errors/NotConnected';
|
|
5
|
-
export { default as UnknownImplementation } from './errors/UnknownImplementation';
|
|
6
|
-
export { default } from './implementation';
|
|
1
|
+
export * from './definitions/interfaces.js';
|
|
2
|
+
export * from './definitions/types.js';
|
|
3
|
+
export { default as AuthenticationError } from './errors/AuthenticationError.js';
|
|
4
|
+
export { default as NotConnected } from './errors/NotConnected.js';
|
|
5
|
+
export { default as UnknownImplementation } from './errors/UnknownImplementation.js';
|
|
6
|
+
export { default } from './implementation.js';
|