Skip to content

Commit 6ff7e11

Browse files
committed
fix: fix typo in get code entry
1 parent b636e6f commit 6ff7e11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/service/oidc_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ func (service *OIDCService) GetCodeEntry(codeHash string, clientId string) (*Aut
469469
var ok bool
470470

471471
service.caches.code.WithLock(func(actions CacheStoreActions[AuthorizeCodeEntry]) {
472-
entry, ok = service.caches.code.Get(codeHash)
472+
entry, ok = actions.Get(codeHash)
473473

474474
if !ok {
475475
return
@@ -481,7 +481,7 @@ func (service *OIDCService) GetCodeEntry(codeHash string, clientId string) (*Aut
481481
}
482482

483483
// Since the code can only be used once, we delete it from the cache after retrieving it
484-
service.caches.code.Delete(codeHash)
484+
actions.Delete(codeHash)
485485
})
486486

487487
if !ok {

0 commit comments

Comments
 (0)