@atproto/oauth-provider 0.2.16 → 0.2.17
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +18 -0
- package/dist/account/account-store.d.ts +1 -1
- package/dist/account/account-store.d.ts.map +1 -1
- package/dist/account/account-store.js +6 -9
- package/dist/account/account-store.js.map +1 -1
- package/dist/account/account.d.ts +1 -1
- package/dist/account/account.d.ts.map +1 -1
- package/dist/assets/app/bundle-manifest.json +2 -2
- package/dist/assets/app/main.js +1 -1
- package/dist/assets/app/main.js.map +1 -1
- package/dist/assets/assets-middleware.d.ts.map +1 -1
- package/dist/assets/assets-middleware.js.map +1 -1
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/assets/index.js +7 -6
- package/dist/assets/index.js.map +1 -1
- package/dist/client/client-auth.d.ts +1 -1
- package/dist/client/client-auth.d.ts.map +1 -1
- package/dist/client/client-auth.js +1 -1
- package/dist/client/client-auth.js.map +1 -1
- package/dist/client/client-manager.d.ts +2 -2
- package/dist/client/client-manager.d.ts.map +1 -1
- package/dist/client/client-manager.js +2 -2
- package/dist/client/client-manager.js.map +1 -1
- package/dist/client/client-store.d.ts.map +1 -1
- package/dist/client/client-store.js.map +1 -1
- package/dist/client/client-utils.d.ts.map +1 -1
- package/dist/client/client-utils.js.map +1 -1
- package/dist/client/client.d.ts +1 -1
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +1 -1
- package/dist/client/client.js.map +1 -1
- package/dist/device/device-data.d.ts.map +1 -1
- package/dist/device/device-data.js.map +1 -1
- package/dist/device/device-details.d.ts.map +1 -1
- package/dist/device/device-details.js.map +1 -1
- package/dist/device/device-id.d.ts.map +1 -1
- package/dist/device/device-id.js.map +1 -1
- package/dist/device/device-manager.d.ts.map +1 -1
- package/dist/device/device-manager.js +1 -1
- package/dist/device/device-manager.js.map +1 -1
- package/dist/device/session-id.d.ts.map +1 -1
- package/dist/device/session-id.js.map +1 -1
- package/dist/dpop/dpop-manager.d.ts.map +1 -1
- package/dist/dpop/dpop-manager.js.map +1 -1
- package/dist/dpop/dpop-nonce.d.ts.map +1 -1
- package/dist/dpop/dpop-nonce.js.map +1 -1
- package/dist/errors/invalid-client-metadata-error.js +1 -1
- package/dist/errors/invalid-client-metadata-error.js.map +1 -1
- package/dist/errors/invalid-token-error.d.ts.map +1 -1
- package/dist/errors/invalid-token-error.js +1 -1
- package/dist/errors/invalid-token-error.js.map +1 -1
- package/dist/errors/www-authenticate-error.d.ts.map +1 -1
- package/dist/errors/www-authenticate-error.js.map +1 -1
- package/dist/lib/http/accept.d.ts.map +1 -1
- package/dist/lib/http/accept.js.map +1 -1
- package/dist/lib/http/middleware.d.ts +1 -1
- package/dist/lib/http/middleware.d.ts.map +1 -1
- package/dist/lib/http/request.d.ts.map +1 -1
- package/dist/lib/http/request.js +2 -2
- package/dist/lib/http/request.js.map +1 -1
- package/dist/lib/http/response.d.ts.map +1 -1
- package/dist/lib/http/response.js.map +1 -1
- package/dist/lib/http/stream.d.ts.map +1 -1
- package/dist/lib/http/stream.js +1 -1
- package/dist/lib/http/stream.js.map +1 -1
- package/dist/lib/util/authorization-header.d.ts.map +1 -1
- package/dist/lib/util/authorization-header.js +1 -1
- package/dist/lib/util/authorization-header.js.map +1 -1
- package/dist/lib/util/hostname.d.ts.map +1 -1
- package/dist/metadata/build-metadata.d.ts.map +1 -1
- package/dist/metadata/build-metadata.js.map +1 -1
- package/dist/oauth-hooks.d.ts.map +1 -1
- package/dist/oauth-provider.d.ts +3 -3
- package/dist/oauth-provider.d.ts.map +1 -1
- package/dist/oauth-provider.js +12 -35
- package/dist/oauth-provider.js.map +1 -1
- package/dist/oauth-verifier.d.ts +1 -1
- package/dist/oauth-verifier.d.ts.map +1 -1
- package/dist/oauth-verifier.js.map +1 -1
- package/dist/output/build-authorize-data.d.ts.map +1 -1
- package/dist/output/build-authorize-data.js.map +1 -1
- package/dist/output/build-error-payload.d.ts.map +1 -1
- package/dist/output/build-error-payload.js +1 -1
- package/dist/output/build-error-payload.js.map +1 -1
- package/dist/output/output-manager.d.ts.map +1 -1
- package/dist/output/output-manager.js.map +1 -1
- package/dist/output/send-authorize-redirect.d.ts +1 -1
- package/dist/output/send-authorize-redirect.d.ts.map +1 -1
- package/dist/output/send-authorize-redirect.js.map +1 -1
- package/dist/output/send-web-page.d.ts.map +1 -1
- package/dist/output/send-web-page.js.map +1 -1
- package/dist/replay/replay-store-redis.d.ts.map +1 -1
- package/dist/replay/replay-store-redis.js.map +1 -1
- package/dist/request/code.d.ts.map +1 -1
- package/dist/request/code.js.map +1 -1
- package/dist/request/request-data.d.ts.map +1 -1
- package/dist/request/request-data.js.map +1 -1
- package/dist/request/request-id.d.ts.map +1 -1
- package/dist/request/request-id.js.map +1 -1
- package/dist/request/request-info.d.ts +1 -1
- package/dist/request/request-info.d.ts.map +1 -1
- package/dist/request/request-manager.d.ts.map +1 -1
- package/dist/request/request-manager.js +1 -1
- package/dist/request/request-manager.js.map +1 -1
- package/dist/request/request-store-memory.d.ts +1 -1
- package/dist/request/request-store-memory.d.ts.map +1 -1
- package/dist/request/request-store-redis.d.ts +1 -1
- package/dist/request/request-store-redis.d.ts.map +1 -1
- package/dist/request/request-store-redis.js.map +1 -1
- package/dist/request/request-uri.d.ts.map +1 -1
- package/dist/request/request-uri.js.map +1 -1
- package/dist/signer/signed-token-payload.d.ts +1 -1
- package/dist/signer/signed-token-payload.d.ts.map +1 -1
- package/dist/signer/signed-token-payload.js +2 -5
- package/dist/signer/signed-token-payload.js.map +1 -1
- package/dist/signer/signer.d.ts +1 -1
- package/dist/signer/signer.d.ts.map +1 -1
- package/dist/signer/signer.js.map +1 -1
- package/dist/token/refresh-token.d.ts.map +1 -1
- package/dist/token/refresh-token.js.map +1 -1
- package/dist/token/token-claims.d.ts +1 -1
- package/dist/token/token-claims.d.ts.map +1 -1
- package/dist/token/token-claims.js +2 -5
- package/dist/token/token-claims.js.map +1 -1
- package/dist/token/token-data.d.ts.map +1 -1
- package/dist/token/token-id.d.ts.map +1 -1
- package/dist/token/token-id.js.map +1 -1
- package/dist/token/token-manager.d.ts.map +1 -1
- package/dist/token/token-manager.js +1 -1
- package/dist/token/token-manager.js.map +1 -1
- package/dist/token/verify-token-claims.d.ts.map +1 -1
- package/dist/token/verify-token-claims.js.map +1 -1
- package/package.json +13 -10
- package/rollup.config.js +4 -5
- package/src/account/account-store.ts +1 -2
- package/src/account/account.ts +1 -1
- package/src/assets/app/hooks/use-api.ts +1 -2
- package/src/assets/app/lib/api.ts +0 -1
- package/src/assets/assets-middleware.ts +0 -1
- package/src/assets/index.ts +2 -3
- package/src/client/client-auth.ts +1 -2
- package/src/client/client-manager.ts +13 -14
- package/src/client/client-store.ts +0 -1
- package/src/client/client-utils.ts +0 -1
- package/src/client/client.ts +13 -14
- package/src/device/device-data.ts +0 -1
- package/src/device/device-details.ts +0 -1
- package/src/device/device-id.ts +0 -1
- package/src/device/device-manager.ts +1 -4
- package/src/device/session-id.ts +0 -1
- package/src/dpop/dpop-manager.ts +0 -2
- package/src/dpop/dpop-nonce.ts +0 -1
- package/src/errors/invalid-client-metadata-error.ts +1 -1
- package/src/errors/invalid-token-error.ts +1 -2
- package/src/errors/www-authenticate-error.ts +0 -1
- package/src/lib/http/accept.ts +0 -1
- package/src/lib/http/middleware.ts +1 -1
- package/src/lib/http/request.ts +2 -3
- package/src/lib/http/response.ts +0 -1
- package/src/lib/http/stream.ts +3 -4
- package/src/lib/util/authorization-header.ts +1 -2
- package/src/lib/util/hostname.ts +1 -1
- package/src/metadata/build-metadata.ts +0 -1
- package/src/oauth-hooks.ts +0 -1
- package/src/oauth-provider.ts +8 -9
- package/src/oauth-verifier.ts +1 -2
- package/src/output/build-authorize-data.ts +0 -1
- package/src/output/build-error-payload.ts +1 -2
- package/src/output/output-manager.ts +2 -3
- package/src/output/send-authorize-redirect.ts +1 -2
- package/src/output/send-web-page.ts +2 -3
- package/src/replay/replay-manager.ts +1 -1
- package/src/replay/replay-store-redis.ts +0 -1
- package/src/request/code.ts +0 -1
- package/src/request/request-data.ts +0 -1
- package/src/request/request-id.ts +0 -1
- package/src/request/request-info.ts +1 -1
- package/src/request/request-manager.ts +3 -4
- package/src/request/request-store-memory.ts +1 -1
- package/src/request/request-store-redis.ts +1 -2
- package/src/request/request-uri.ts +0 -1
- package/src/signer/signed-token-payload.ts +1 -2
- package/src/signer/signer.ts +1 -2
- package/src/token/refresh-token.ts +0 -1
- package/src/token/token-claims.ts +1 -2
- package/src/token/token-data.ts +0 -1
- package/src/token/token-id.ts +0 -1
- package/src/token/token-manager.ts +1 -2
- package/src/token/verify-token-claims.ts +0 -1
package/src/dpop/dpop-manager.ts
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
import { createHash } from 'node:crypto'
|
2
|
-
|
3
2
|
import { EmbeddedJWK, calculateJwkThumbprint, errors, jwtVerify } from 'jose'
|
4
|
-
|
5
3
|
import { DPOP_NONCE_MAX_AGE } from '../constants.js'
|
6
4
|
import { InvalidDpopProofError } from '../errors/invalid-dpop-proof-error.js'
|
7
5
|
import { UseDpopNonceError } from '../errors/use-dpop-nonce-error.js'
|
package/src/dpop/dpop-nonce.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
import { JwtVerifyError } from '@atproto/jwk'
|
2
1
|
import { errors } from 'jose'
|
3
2
|
import { ZodError } from 'zod'
|
4
|
-
|
3
|
+
import { JwtVerifyError } from '@atproto/jwk'
|
5
4
|
import { OAuthError } from './oauth-error.js'
|
6
5
|
import { WWWAuthenticateError } from './www-authenticate-error.js'
|
7
6
|
|
package/src/lib/http/accept.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { IncomingMessage, ServerResponse } from 'node:http'
|
2
2
|
import { writeJson } from './response.js'
|
3
|
-
import {
|
3
|
+
import { Handler, Middleware, NextFunction } from './types.js'
|
4
4
|
|
5
5
|
export function combineMiddlewares<M extends Middleware<any, any, any>>(
|
6
6
|
middlewares: Iterable<null | undefined | M>,
|
package/src/lib/http/request.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
+
import { randomBytes } from 'node:crypto'
|
1
2
|
import { parse as parseCookie, serialize as serializeCookie } from 'cookie'
|
2
|
-
import { randomBytes } from 'crypto'
|
3
3
|
import createHttpError from 'http-errors'
|
4
|
-
|
5
4
|
import { appendHeader } from './response.js'
|
6
5
|
import { IncomingMessage, ServerResponse } from './types.js'
|
7
|
-
import {
|
6
|
+
import { UrlReference, urlMatch } from './url.js'
|
8
7
|
|
9
8
|
export function validateHeaderValue(
|
10
9
|
req: IncomingMessage,
|
package/src/lib/http/response.ts
CHANGED
package/src/lib/http/stream.ts
CHANGED
@@ -1,13 +1,12 @@
|
|
1
|
-
import { decodeStream, streamToNodeBuffer } from '@atproto/common'
|
2
|
-
import createHttpError from 'http-errors'
|
3
1
|
import { IncomingMessage } from 'node:http'
|
4
2
|
import { Readable } from 'node:stream'
|
5
|
-
|
3
|
+
import createHttpError from 'http-errors'
|
4
|
+
import { decodeStream, streamToNodeBuffer } from '@atproto/common'
|
6
5
|
import {
|
7
6
|
KnownNames,
|
8
7
|
KnownParser,
|
9
|
-
parseContentType,
|
10
8
|
ParserResult,
|
9
|
+
parseContentType,
|
11
10
|
parsers,
|
12
11
|
} from './parser.js'
|
13
12
|
|
@@ -1,9 +1,8 @@
|
|
1
|
+
import { z } from 'zod'
|
1
2
|
import {
|
2
3
|
oauthAccessTokenSchema,
|
3
4
|
oauthTokenTypeSchema,
|
4
5
|
} from '@atproto/oauth-types'
|
5
|
-
import { z } from 'zod'
|
6
|
-
|
7
6
|
import { InvalidRequestError } from '../../errors/invalid-request-error.js'
|
8
7
|
import { WWWAuthenticateError } from '../../errors/www-authenticate-error.js'
|
9
8
|
|
package/src/lib/util/hostname.ts
CHANGED
package/src/oauth-hooks.ts
CHANGED
package/src/oauth-provider.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import
|
3
|
-
import {
|
1
|
+
import { mediaType } from '@hapi/accept'
|
2
|
+
import createHttpError from 'http-errors'
|
3
|
+
import type { Redis, RedisOptions } from 'ioredis'
|
4
|
+
import { ZodError, z } from 'zod'
|
4
5
|
import { Jwks, Keyset } from '@atproto/jwk'
|
5
6
|
import {
|
6
7
|
CLIENT_ASSERTION_TYPE_JWT_BEARER,
|
@@ -29,11 +30,9 @@ import {
|
|
29
30
|
oauthTokenIdentificationSchema,
|
30
31
|
oauthTokenRequestSchema,
|
31
32
|
} from '@atproto/oauth-types'
|
32
|
-
import {
|
33
|
-
import
|
34
|
-
import
|
35
|
-
import z, { ZodError } from 'zod'
|
36
|
-
|
33
|
+
import { safeFetchWrap } from '@atproto-labs/fetch-node'
|
34
|
+
import { SimpleStore } from '@atproto-labs/simple-store'
|
35
|
+
import { SimpleStoreMemory } from '@atproto-labs/simple-store-memory'
|
37
36
|
import { AccessTokenType } from './access-token/access-token-type.js'
|
38
37
|
import { AccountManager } from './account/account-manager.js'
|
39
38
|
import {
|
@@ -125,10 +124,10 @@ export type OAuthProviderStore = Partial<
|
|
125
124
|
>
|
126
125
|
|
127
126
|
export {
|
128
|
-
Keyset,
|
129
127
|
type CustomMetadata,
|
130
128
|
type Customization,
|
131
129
|
type Handler,
|
130
|
+
Keyset,
|
132
131
|
type OAuthAuthorizationServerMetadata,
|
133
132
|
}
|
134
133
|
|
package/src/oauth-verifier.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Redis, RedisOptions } from 'ioredis'
|
1
2
|
import { Key, Keyset, isSignedJwt } from '@atproto/jwk'
|
2
3
|
import {
|
3
4
|
OAuthAccessToken,
|
@@ -5,8 +6,6 @@ import {
|
|
5
6
|
OAuthTokenType,
|
6
7
|
oauthIssuerIdentifierSchema,
|
7
8
|
} from '@atproto/oauth-types'
|
8
|
-
import type { Redis, RedisOptions } from 'ioredis'
|
9
|
-
|
10
9
|
import { AccessTokenType } from './access-token/access-token-type.js'
|
11
10
|
import { DpopManager, DpopManagerOptions } from './dpop/dpop-manager.js'
|
12
11
|
import { DpopNonce } from './dpop/dpop-nonce.js'
|
@@ -1,17 +1,16 @@
|
|
1
1
|
import { ServerResponse } from 'node:http'
|
2
|
-
|
3
2
|
import { Asset } from '../assets/asset.js'
|
4
3
|
import { getAsset } from '../assets/index.js'
|
5
|
-
import {
|
4
|
+
import { Html, cssCode, html } from '../lib/html/index.js'
|
6
5
|
import {
|
7
6
|
AuthorizationResultAuthorize,
|
8
7
|
buildAuthorizeData,
|
9
8
|
} from './build-authorize-data.js'
|
10
9
|
import { buildErrorPayload, buildErrorStatus } from './build-error-payload.js'
|
11
10
|
import {
|
11
|
+
Customization,
|
12
12
|
buildCustomizationCss,
|
13
13
|
buildCustomizationData,
|
14
|
-
Customization,
|
15
14
|
} from './customization.js'
|
16
15
|
import { declareBackendData, sendWebPage } from './send-web-page.js'
|
17
16
|
|
@@ -1,9 +1,8 @@
|
|
1
|
+
import { ServerResponse } from 'node:http'
|
1
2
|
import {
|
2
3
|
OAuthAuthorizationRequestParameters,
|
3
4
|
OAuthTokenType,
|
4
5
|
} from '@atproto/oauth-types'
|
5
|
-
import { ServerResponse } from 'node:http'
|
6
|
-
|
7
6
|
import { InvalidRequestError } from '../errors/invalid-request-error.js'
|
8
7
|
import { html, js } from '../lib/html/index.js'
|
9
8
|
import { Code } from '../request/code.js'
|
@@ -1,14 +1,13 @@
|
|
1
1
|
import { createHash } from 'node:crypto'
|
2
2
|
import { ServerResponse } from 'node:http'
|
3
|
-
|
4
3
|
import {
|
5
4
|
AssetRef,
|
6
|
-
buildDocument,
|
7
5
|
BuildDocumentOptions,
|
8
6
|
Html,
|
7
|
+
buildDocument,
|
9
8
|
js,
|
10
9
|
} from '../lib/html/index.js'
|
11
|
-
import {
|
10
|
+
import { WriteResponseOptions, writeHtml } from '../lib/http/response.js'
|
12
11
|
|
13
12
|
export function declareBackendData(name: string, data: unknown) {
|
14
13
|
// The script tag is removed after the data is assigned to the global variable
|
package/src/request/code.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { OAuthAuthorizationRequestParameters } from '@atproto/oauth-types'
|
2
|
-
import { ClientId } from '../client/client-id.js'
|
3
2
|
import { ClientAuth } from '../client/client-auth.js'
|
3
|
+
import { ClientId } from '../client/client-id.js'
|
4
4
|
import { RequestId } from './request-id.js'
|
5
5
|
import { RequestUri } from './request-uri.js'
|
6
6
|
|
@@ -3,7 +3,6 @@ import {
|
|
3
3
|
OAuthAuthorizationRequestParameters,
|
4
4
|
OAuthAuthorizationServerMetadata,
|
5
5
|
} from '@atproto/oauth-types'
|
6
|
-
|
7
6
|
import { Account } from '../account/account.js'
|
8
7
|
import { ClientAuth } from '../client/client-auth.js'
|
9
8
|
import { ClientId } from '../client/client-id.js'
|
@@ -20,22 +19,22 @@ import { InvalidAuthorizationDetailsError } from '../errors/invalid-authorizatio
|
|
20
19
|
import { InvalidGrantError } from '../errors/invalid-grant-error.js'
|
21
20
|
import { InvalidParametersError } from '../errors/invalid-parameters-error.js'
|
22
21
|
import { InvalidRequestError } from '../errors/invalid-request-error.js'
|
22
|
+
import { InvalidScopeError } from '../errors/invalid-scope-error.js'
|
23
23
|
import { OAuthHooks } from '../oauth-hooks.js'
|
24
24
|
import { Signer } from '../signer/signer.js'
|
25
25
|
import { Code, generateCode } from './code.js'
|
26
26
|
import {
|
27
|
-
isRequestDataAuthorized,
|
28
27
|
RequestDataAuthorized,
|
28
|
+
isRequestDataAuthorized,
|
29
29
|
} from './request-data.js'
|
30
30
|
import { generateRequestId } from './request-id.js'
|
31
31
|
import { RequestInfo } from './request-info.js'
|
32
32
|
import { RequestStore, UpdateRequestData } from './request-store.js'
|
33
33
|
import {
|
34
|
+
RequestUri,
|
34
35
|
decodeRequestUri,
|
35
36
|
encodeRequestUri,
|
36
|
-
RequestUri,
|
37
37
|
} from './request-uri.js'
|
38
|
-
import { InvalidScopeError } from '../errors/invalid-scope-error.js'
|
39
38
|
|
40
39
|
export class RequestManager {
|
41
40
|
constructor(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Code } from './code.js'
|
2
|
-
import { RequestId } from './request-id.js'
|
3
2
|
import { RequestData } from './request-data.js'
|
3
|
+
import { RequestId } from './request-id.js'
|
4
4
|
import { RequestStore } from './request-store.js'
|
5
5
|
|
6
6
|
export class RequestStoreMemory implements RequestStore {
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import type { Redis } from 'ioredis'
|
2
|
-
|
3
2
|
import { CreateRedisOptions, createRedis } from '../lib/redis.js'
|
4
3
|
import { Code } from './code.js'
|
5
4
|
import { RequestData } from './request-data.js'
|
6
5
|
import { RequestId, requestIdSchema } from './request-id.js'
|
7
6
|
import { RequestStore } from './request-store.js'
|
8
7
|
|
9
|
-
export type {
|
8
|
+
export type { CreateRedisOptions, Redis }
|
10
9
|
|
11
10
|
export type ReplayStoreRedisOptions = {
|
12
11
|
redis: CreateRedisOptions
|
package/src/signer/signer.ts
CHANGED
@@ -7,10 +7,9 @@ import {
|
|
7
7
|
VerifyOptions,
|
8
8
|
} from '@atproto/jwk'
|
9
9
|
import {
|
10
|
-
OAuthAuthorizationRequestParameters,
|
11
10
|
OAuthAuthorizationDetails,
|
11
|
+
OAuthAuthorizationRequestParameters,
|
12
12
|
} from '@atproto/oauth-types'
|
13
|
-
|
14
13
|
import { Client } from '../client/client.js'
|
15
14
|
import { dateToEpoch } from '../lib/util/date.js'
|
16
15
|
import { TokenId } from '../token/token-id.js'
|
package/src/token/token-data.ts
CHANGED
@@ -2,7 +2,6 @@ import {
|
|
2
2
|
OAuthAuthorizationDetails,
|
3
3
|
OAuthAuthorizationRequestParameters,
|
4
4
|
} from '@atproto/oauth-types'
|
5
|
-
|
6
5
|
import { ClientAuth } from '../client/client-auth.js'
|
7
6
|
import { ClientId } from '../client/client-id.js'
|
8
7
|
import { DeviceId } from '../device/device-id.js'
|
package/src/token/token-id.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { createHash } from 'node:crypto'
|
1
2
|
import { isSignedJwt } from '@atproto/jwk'
|
2
3
|
import {
|
3
4
|
CLIENT_ASSERTION_TYPE_JWT_BEARER,
|
@@ -10,8 +11,6 @@ import {
|
|
10
11
|
OAuthTokenResponse,
|
11
12
|
OAuthTokenType,
|
12
13
|
} from '@atproto/oauth-types'
|
13
|
-
import { createHash } from 'node:crypto'
|
14
|
-
|
15
14
|
import { AccessTokenType } from '../access-token/access-token-type.js'
|
16
15
|
import { DeviceAccountInfo } from '../account/account-store.js'
|
17
16
|
import { Account } from '../account/account.js'
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { OAuthAccessToken, OAuthTokenType } from '@atproto/oauth-types'
|
2
|
-
|
3
2
|
import { InvalidDpopKeyBindingError } from '../errors/invalid-dpop-key-binding-error.js'
|
4
3
|
import { InvalidDpopProofError } from '../errors/invalid-dpop-proof-error.js'
|
5
4
|
import { asArray } from '../lib/util/cast.js'
|