From b6f4417551a76b53624e84edc5ac51752d75e4d9 Mon Sep 17 00:00:00 2001 From: Matthew Wratt Date: Thu, 4 Apr 2024 16:44:40 +1300 Subject: [PATCH] Removed unused `request` variable from api --- src/mock/actions/credentials-exchange.ts | 7 +------ src/mock/api/credentials-exchange.ts | 3 --- 2 files changed, 1 insertion(+), 9 deletions(-) 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 },