Skip to content

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Nov 4, 2024
1 parent d1bbf81 commit 79cc533
Show file tree
Hide file tree
Showing 54 changed files with 2,200 additions and 1,156 deletions.
2 changes: 1 addition & 1 deletion packages/oauth2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build": "tsup src/index.ts --format cjs,esm --dts --clean --sourcemap"
},
"dependencies": {
"@animo-id/oid4vc-utils": "workspace:*",
"@animo-id/oauth2-utils": "workspace:*",
"valibot": "^0.42.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/Oauth2AuthorizationServer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import { parseWithErrorHandling } from '@animo-id/oauth2-utils'
import { type CreateAccessTokenOptions, createAccessTokenJwt } from './access-token/create-access-token'
import {
type CreateAccessTokenResponseOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/Oauth2Client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { objectToQueryParams } from '@animo-id/oid4vc-utils'
import { objectToQueryParams } from '@animo-id/oauth2-utils'
import {
type RetrieveAuthorizationCodeAccessTokenOptions,
type RetrievePreAuthorizedCodeAccessTokenOptions,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import { parseWithErrorHandling } from '@animo-id/oauth2-utils'
import type { CallbackContext } from '../callbacks'
import { type AccessTokenResponse, vAccessTokenResponse } from './v-access-token'

Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/access-token/create-access-token.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addSecondsToDate, dateToSeconds, encodeToBase64Url } from '@animo-id/oid4vc-utils'
import { addSecondsToDate, dateToSeconds, encodeToBase64Url } from '@animo-id/oauth2-utils'
import type { CallbackContext } from '../callbacks'
import { HashAlgorithm } from '../callbacks'
import { calculateJwkThumbprint } from '../common/jwk/jwk-thumbprint'
Expand Down
4 changes: 2 additions & 2 deletions packages/oauth2/src/access-token/introspect-token.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { createValibotFetcher, objectToQueryParams, parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import { createValibotFetcher, objectToQueryParams, parseWithErrorHandling } from '@animo-id/oauth2-utils'
import { ContentType } from '../common/content-type'
import { Oauth2Error } from '../error/Oauth2Error'
import { Oauth2InvalidFetchResponseError } from '../error/Oauth2InvalidFetchResponseError'
import type { AuthorizationServerMetadata } from '../metadata/authorization-server/v-authorization-server-metadata'

import { Headers } from '@animo-id/oid4vc-utils'
import { Headers } from '@animo-id/oauth2-utils'
import type { CallbackContext } from '../callbacks'
import {
type TokenIntrospectionRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { valibotRecursiveFlattenIssues } from '@animo-id/oid4vc-utils'
import { valibotRecursiveFlattenIssues } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import type { RequestLike } from '../common/v-common'
import { Oauth2ErrorCodes } from '../common/v-oauth2-error'
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/access-token/retrieve-access-token.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createValibotFetcher, objectToQueryParams, parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import { createValibotFetcher, objectToQueryParams, parseWithErrorHandling } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import { ValidationError } from '../../../utils/src/error/ValidationError'
import type { CallbackContext } from '../callbacks'
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/access-token/v-access-token-jwt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { vInteger } from '@animo-id/oid4vc-utils'
import { vInteger } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import { vJwtHeader, vJwtPayload } from '../common/jwt/v-jwt'

Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/access-token/v-access-token.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as v from 'valibot'

import { vHttpsUrl } from '@animo-id/oid4vc-utils'
import { vHttpsUrl } from '@animo-id/oauth2-utils'
import { vOauth2ErrorResponse } from '../common/v-oauth2-error'
import { vAuthorizationCodeGrantIdentifier, vPreAuthorizedCodeGrantIdentifier } from '../v-grant-type'

Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/access-token/v-token-introspection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { vInteger } from '@animo-id/oid4vc-utils'
import { vInteger } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import { vJwtConfirmationPayload } from '../common/jwt/v-jwt'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
createValibotFetcher,
objectToQueryParams,
parseWithErrorHandling,
} from '@animo-id/oid4vc-utils'
} from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import type { CallbackContext } from '../callbacks'
import { ContentType } from '../common/content-type'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { vInteger } from '@animo-id/oid4vc-utils'
import { vInteger } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import { vOauth2ErrorResponse } from '../common/v-oauth2-error'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Fetch, createValibotFetcher, objectToQueryParams } from '@animo-id/oid4vc-utils'
import { type Fetch, createValibotFetcher, objectToQueryParams } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import { ValidationError } from '../../../utils/src/error/ValidationError'
import { vAccessTokenErrorResponse } from '../access-token/v-access-token'
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/callbacks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Fetch } from '@animo-id/oid4vc-utils'
import type { Fetch } from '@animo-id/oauth2-utils'
import type { ClientAuthenticationCallback } from './client-authentication'
import type { JwtHeader, JwtPayload, JwtSigner } from './common/jwt/v-jwt'

Expand Down
4 changes: 2 additions & 2 deletions packages/oauth2/src/client-authentication.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { ContentType } from './common/content-type'

import type { FetchHeaders, HttpMethod } from '@animo-id/oid4vc-utils'
import type { FetchHeaders, HttpMethod } from '@animo-id/oauth2-utils'
import type { AuthorizationServerMetadata } from './metadata/authorization-server/v-authorization-server-metadata'

import { decodeUtf8String, encodeToBase64Url } from '@animo-id/oid4vc-utils'
import { decodeUtf8String, encodeToBase64Url } from '@animo-id/oauth2-utils'

/**
* Options for client authentication
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/common/jwk/jwk-thumbprint.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as v from 'valibot'
import type { HashAlgorithm, HashCallback } from '../../callbacks'

import { decodeUtf8String, encodeToBase64Url, parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import { decodeUtf8String, encodeToBase64Url, parseWithErrorHandling } from '@animo-id/oauth2-utils'
import type { Jwk } from './v-jwk'

const vJwkThumbprintComponents = v.variant('kty', [
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/common/jwt/decode-jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
encodeToUtf8String,
parseWithErrorHandling,
stringToJsonWithErrorHandling,
} from '@animo-id/oid4vc-utils'
} from '@animo-id/oauth2-utils'
import { type JwtSigner, vJwtHeader, vJwtPayload } from './v-jwt'

export interface DecodeJwtOptions<
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/common/jwt/v-jwt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { vInteger } from '@animo-id/oid4vc-utils'
import { vInteger } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import { type Jwk, vJwk } from '../jwk/v-jwk'
import { vAlgValueNotNone } from '../v-common'
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/common/jwt/verify-jwt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dateToSeconds } from '@animo-id/oid4vc-utils'
import { dateToSeconds } from '@animo-id/oauth2-utils'
import type { VerifyJwtCallback } from '../../callbacks'
import { Oauth2JwtVerificationError } from '../../error/Oauth2JwtVerificationError'
import type { JwtHeader, JwtPayload, JwtSigner } from './v-jwt'
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/common/v-common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FetchHeaders, HttpMethod } from '@animo-id/oid4vc-utils'
import type { FetchHeaders, HttpMethod } from '@animo-id/oauth2-utils'
import * as v from 'valibot'

export const vAlgValueNotNone = v.pipe(
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/dpop/dpop-retry.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FetchHeaders } from '@animo-id/oid4vc-utils'
import type { FetchHeaders } from '@animo-id/oauth2-utils'
import type { AccessTokenErrorResponse } from '../access-token/v-access-token'
import { Oauth2Error } from '../error/Oauth2Error'
import { extractDpopNonceFromHeaders } from './dpop'
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/dpop/dpop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
decodeUtf8String,
encodeToBase64Url,
parseWithErrorHandling,
} from '@animo-id/oid4vc-utils'
} from '@animo-id/oauth2-utils'
import { verifyJwt } from '../common/jwt/verify-jwt'
import type { RequestLike } from '../common/v-common'
import { type DpopJwtHeader, type DpopJwtPayload, vDpopJwtHeader, vDpopJwtPayload } from './v-dpop'
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/dpop/v-dpop.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as v from 'valibot'
import { vJwtHeader, vJwtPayload } from '../common/jwt/v-jwt'

import { vHttpMethod, vHttpsUrl, vInteger } from '@animo-id/oid4vc-utils'
import { vHttpMethod, vHttpsUrl, vInteger } from '@animo-id/oauth2-utils'
import { vJwk } from '../common/jwk/v-jwk'

export const vDpopJwtPayload = v.looseObject({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FetchResponse } from '@animo-id/oid4vc-utils'
import type { FetchResponse } from '@animo-id/oauth2-utils'
import type { AuthorizationChallengeErrorResponse } from '../authorization-challenge/v-authorization-challenge'
import { Oauth2ClientErrorResponseError } from './Oauth2ClientErrorResponseError'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FetchResponse } from '@animo-id/oid4vc-utils'
import type { FetchResponse } from '@animo-id/oauth2-utils'
import type { Oauth2ErrorResponse } from '../common/v-oauth2-error'
import { Oauth2Error } from './Oauth2Error'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FetchResponse } from '@animo-id/oid4vc-utils'
import type { FetchResponse } from '@animo-id/oauth2-utils'
import { Oauth2Error } from './Oauth2Error'

export class Oauth2InvalidFetchResponseError extends Oauth2Error {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Fetch, joinUriParts } from '@animo-id/oid4vc-utils'
import { type Fetch, joinUriParts } from '@animo-id/oauth2-utils'
import { Oauth2Error } from '../../error/Oauth2Error'
import { fetchWellKnownMetadata } from '../fetch-well-known-metadata'
import { type AuthorizationServerMetadata, vAuthorizationServerMetadata } from './v-authorization-server-metadata'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { vHttpsUrl } from '@animo-id/oid4vc-utils'
import { vHttpsUrl } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import { vAlgValueNotNone } from '../../common/v-common'

Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/metadata/fetch-jwks-uri.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Fetch, createValibotFetcher } from '@animo-id/oid4vc-utils'
import { type Fetch, createValibotFetcher } from '@animo-id/oauth2-utils'
import { ValidationError } from '../../../utils/src/error/ValidationError'
import { type JwkSet, vJwkSet } from '../common/jwk/v-jwk'
import { Oauth2Error } from '../error/Oauth2Error'
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/metadata/fetch-well-known-metadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type BaseSchema, type Fetch, createValibotFetcher } from '@animo-id/oid4vc-utils'
import { type BaseSchema, type Fetch, createValibotFetcher } from '@animo-id/oauth2-utils'
import type * as v from 'valibot'
import { ValidationError } from '../../../utils/src/error/ValidationError'
import { Oauth2InvalidFetchResponseError } from '../error/Oauth2InvalidFetchResponseError'
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/src/pkce.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { decodeUtf8String, encodeToBase64Url } from '@animo-id/oid4vc-utils'
import { decodeUtf8String, encodeToBase64Url } from '@animo-id/oauth2-utils'
import { type CallbackContext, HashAlgorithm, type HashCallback } from './callbacks'
import { Oauth2Error } from './error/Oauth2Error'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FetchResponse } from '@animo-id/oid4vc-utils'
import type { FetchResponse } from '@animo-id/oauth2-utils'
import type { CallbackContext } from '../callbacks'
import {
type CreateDpopJwtOptions,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { JsonParseError, ValidationError } from '@animo-id/oid4vc-utils'
import { JsonParseError, ValidationError } from '@animo-id/oauth2-utils'
import { introspectToken } from '../access-token/introspect-token'
import type { AccessTokenProfileJwtPayload } from '../access-token/v-access-token-jwt'
import type { TokenIntrospectionResponse } from '../access-token/v-token-introspection'
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth2/tests/util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import crypto from 'node:crypto'
import { decodeBase64, encodeToUtf8String } from '@animo-id/oid4vc-utils'
import { decodeBase64, encodeToUtf8String } from '@animo-id/oauth2-utils'
import * as jose from 'jose'
import { type CallbackContext, HashAlgorithm, type SignJwtCallback } from '../src/callbacks'
import { clientAuthenticationNone } from '../src/client-authentication'
Expand Down
2 changes: 1 addition & 1 deletion packages/oid4vci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"dependencies": {
"@animo-id/oauth2": "workspace:*",
"@animo-id/oid4vc-utils": "workspace:*",
"@animo-id/oauth2-utils": "workspace:*",
"valibot": "^0.42.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/oid4vci/src/Oid4vciIssuer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CallbackContext } from '@animo-id/oauth2'
import { parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import { parseWithErrorHandling } from '@animo-id/oauth2-utils'
import { type CreateCredentialOfferOptions, createCredentialOffer } from './credential-offer/credential-offer'
import {
type CreateCredentialResponseOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/oid4vci/src/__tests__/Oid4vciClient.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { decodeJwt, preAuthorizedCodeGrantIdentifier } from '@animo-id/oauth2'
import { parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import { parseWithErrorHandling } from '@animo-id/oauth2-utils'
import { http, HttpResponse } from 'msw'
import { setupServer } from 'msw/node'
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest'
Expand Down
2 changes: 1 addition & 1 deletion packages/oid4vci/src/credential-offer/credential-offer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
getQueryParams,
objectToQueryParams,
parseWithErrorHandling,
} from '@animo-id/oid4vc-utils'
} from '@animo-id/oauth2-utils'
import type { IssuerMetadataResult } from '../metadata/fetch-issuer-metadata'
import { Oid4vciDraftVersion } from '../version'
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
type PreAuthorizedCodeGrantIdentifier,
preAuthorizedCodeGrantIdentifier,
} from '@animo-id/oauth2'
import { vHttpsUrl } from '@animo-id/oid4vc-utils'
import { vHttpsUrl } from '@animo-id/oauth2-utils'
import * as v from 'valibot'

export const vCredentialOfferGrants = v.looseObject({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { valibotRecursiveFlattenIssues } from '@animo-id/oid4vc-utils'
import { valibotRecursiveFlattenIssues } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import { describe, expect, test } from 'vitest'
import { vCredentialRequest, vCredentialRequestDraft11To14 } from '../v-credential-request'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import { parseWithErrorHandling } from '@animo-id/oauth2-utils'
import { type CredentialResponse, vCredentialResponse } from './v-credential-response'

export interface CreateCredentialResponseOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import { parseWithErrorHandling } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import type { CredentialFormatIdentifier } from '../formats/credential'
import { jwtProofTypeIdentifier } from '../formats/proof-type/jwt/v-jwt-proof-type'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
type RequestDpopOptions,
resourceRequestWithDpopRetry,
} from '@animo-id/oauth2'
import { ValidationError, createValibotFetcher, parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import { ValidationError, createValibotFetcher, parseWithErrorHandling } from '@animo-id/oauth2-utils'
import type { IssuerMetadataResult } from '../metadata/fetch-issuer-metadata'
import { Oid4vciDraftVersion } from '../version'
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { vJwk } from '@animo-id/oauth2'
import type { InferOutputUnion, Simplify } from '@animo-id/oid4vc-utils'
import type { InferOutputUnion, Simplify } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import type { ProofTypeIdentifier } from '../formats/proof-type'
import { vCredentialRequestProofJwt, vJwtProofTypeIdentifier } from '../formats/proof-type/jwt/v-jwt-proof-type'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as v from 'valibot'

import type { InferOutputUnion } from '@animo-id/oid4vc-utils'
import type { InferOutputUnion } from '@animo-id/oauth2-utils'
import {
type CredentialFormatIdentifier,
vJwtVcJsonCredentialRequestFormat,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as v from 'valibot'

import { vCompactJwt, vJwtHeader, vJwtPayload } from '@animo-id/oauth2'
import { vHttpsUrl, vInteger } from '@animo-id/oid4vc-utils'
import { vHttpsUrl, vInteger } from '@animo-id/oauth2-utils'

export const vJwtProofTypeIdentifier = v.literal('jwt')
export const jwtProofTypeIdentifier = vJwtProofTypeIdentifier.literal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Oauth2Error, fetchWellKnownMetadata } from '@animo-id/oauth2'
import { type Fetch, joinUriParts } from '@animo-id/oid4vc-utils'
import { type Fetch, joinUriParts } from '@animo-id/oauth2-utils'
import type { CredentialFormatIdentifier } from '../../formats/credential'
import type { Oid4vciDraftVersion } from '../../version'
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { vCompactJwt } from '@animo-id/oauth2'
import { type InferOutputUnion, type Simplify, vHttpsUrl } from '@animo-id/oid4vc-utils'
import { type InferOutputUnion, type Simplify, vHttpsUrl } from '@animo-id/oauth2-utils'
import * as v from 'valibot'
import {
type CredentialFormatIdentifier,
Expand Down
4 changes: 2 additions & 2 deletions packages/oid4vci/src/metadata/fetch-issuer-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
fetchAuthorizationServerMetadata,
vAuthorizationServerMetadata,
} from '@animo-id/oauth2'
import type { Fetch } from '@animo-id/oid4vc-utils'
import { parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import type { Fetch } from '@animo-id/oauth2-utils'
import { parseWithErrorHandling } from '@animo-id/oauth2-utils'
import type { Oid4vciDraftVersion } from '../version'
import { fetchCredentialIssuerMetadata } from './credential-issuer/credential-issuer-metadata'
import type { CredentialIssuerMetadata } from './credential-issuer/v-credential-issuer-metadata'
Expand Down
2 changes: 1 addition & 1 deletion packages/oid4vci/src/notification/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
type RequestDpopOptions,
resourceRequestWithDpopRetry,
} from '@animo-id/oauth2'
import { defaultFetcher, parseWithErrorHandling } from '@animo-id/oid4vc-utils'
import { defaultFetcher, parseWithErrorHandling } from '@animo-id/oauth2-utils'
import type { IssuerMetadataResult } from '../metadata/fetch-issuer-metadata'
import {
type NotificationEvent,
Expand Down
2 changes: 1 addition & 1 deletion packages/oid4vci/tests/full-flow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
calculateJwkThumbprint,
preAuthorizedCodeGrantIdentifier,
} from '@animo-id/oauth2'
import { type HttpMethod, decodeUtf8String, encodeToBase64Url } from '@animo-id/oid4vc-utils'
import { type HttpMethod, decodeUtf8String, encodeToBase64Url } from '@animo-id/oauth2-utils'
import { http, HttpResponse } from 'msw'
import { setupServer } from 'msw/node'
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest'
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@animo-id/oid4vc-utils",
"name": "@animo-id/oauth2-utils",
"version": "0.0.1",
"exports": "./src/index.ts",
"files": ["dist"],
Expand Down
Loading

0 comments on commit 79cc533

Please sign in to comment.