Skip to content

Commit d1eae2d

Browse files
committed
chore: align naming
1 parent 5539f18 commit d1eae2d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/siop-oid4vp/lib/rp/InMemoryRPSessionManager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class InMemoryRPSessionManager implements IRPSessionManager {
2828
private readonly nonceMapping: Record<number, string> = {}
2929
// stored by hashcode
3030
private readonly stateMapping: Record<number, string> = {}
31-
private readonly callbacksMapping: Record<string, CallbackOpts> = {}
31+
private readonly callbackMapping: Record<string, CallbackOpts> = {}
3232
private readonly maxAgeInSeconds: number
3333

3434
private static getKeysForCorrelationId(mapping: Record<number, string>, correlationId: string): number[] {
@@ -210,14 +210,14 @@ export class InMemoryRPSessionManager implements IRPSessionManager {
210210
this.updateMapping(this.nonceMapping, event, 'nonce', event.correlationId, true)
211211
this.updateMapping(this.stateMapping, event, 'state', event.correlationId, true)
212212
if (event.callback) {
213-
this.callbacksMapping[event.correlationId] = event.callback
213+
this.callbackMapping[event.correlationId] = event.callback
214214
}
215215
} else {
216216
state = eventState as AuthorizationResponseState
217217
this.authorizationResponses[event.correlationId] = state
218218
}
219219

220-
const callback = this.callbacksMapping[event.correlationId]
220+
const callback = this.callbackMapping[event.correlationId]
221221
if (callback && (callback.status === undefined || callback.status.includes(status))) {
222222
void this.executeCallback(callback.url, state)
223223
}

0 commit comments

Comments
 (0)