mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-06-02 17:40:14 +00:00
fix: fix typo in get code entry
This commit is contained in:
@@ -469,7 +469,7 @@ func (service *OIDCService) GetCodeEntry(codeHash string, clientId string) (*Aut
|
|||||||
var ok bool
|
var ok bool
|
||||||
|
|
||||||
service.caches.code.WithLock(func(actions CacheStoreActions[AuthorizeCodeEntry]) {
|
service.caches.code.WithLock(func(actions CacheStoreActions[AuthorizeCodeEntry]) {
|
||||||
entry, ok = service.caches.code.Get(codeHash)
|
entry, ok = actions.Get(codeHash)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
return
|
return
|
||||||
@@ -481,7 +481,7 @@ func (service *OIDCService) GetCodeEntry(codeHash string, clientId string) (*Aut
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Since the code can only be used once, we delete it from the cache after retrieving it
|
// Since the code can only be used once, we delete it from the cache after retrieving it
|
||||||
service.caches.code.Delete(codeHash)
|
actions.Delete(codeHash)
|
||||||
})
|
})
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user