diff --git a/src/mock/actions/credentials-exchange.ts b/src/mock/actions/credentials-exchange.ts index fde8bd4..7e70f71 100644 --- a/src/mock/actions/credentials-exchange.ts +++ b/src/mock/actions/credentials-exchange.ts @@ -14,12 +14,7 @@ export function credentialsExchange({ Omit = {}) { const event = events.credentialsExchange(attributes); - const { request } = event; - - const { implementation, state } = api.credentialsExchange({ - request, - cache, - }); + const { implementation, state } = api.credentialsExchange({ cache }); async function simulate(handler: Handler) { await handler(event, implementation); diff --git a/src/mock/api/credentials-exchange.ts b/src/mock/api/credentials-exchange.ts index 99b68e9..11471ea 100644 --- a/src/mock/api/credentials-exchange.ts +++ b/src/mock/api/credentials-exchange.ts @@ -4,7 +4,6 @@ import { request as mockRequest } from "../request"; export interface CredentialsExchangeOptions { cache?: Record; - request?: Auth0.Request; } export interface CredentialsExchangeState { @@ -16,11 +15,9 @@ export interface CredentialsExchangeState { } export function credentialsExchange({ - request, cache, }: CredentialsExchangeOptions = {}) { const apiCache = mockCache(cache); - const requestValue = request ?? mockRequest(); const state: CredentialsExchangeState = { access: { denied: false },