luckyframework / authentic

An authentication library for Lucky projects
MIT License
14 stars 13 forks source link

memoize the current_user? method. #64

Closed jwoertink closed 3 years ago

jwoertink commented 3 years ago

Fixes #32

Since we include Lucky as a dependency of this library, we know that memoize exists at the Object level

https://github.com/luckyframework/lucky/blob/0fcd828851266b9bb5d2ca4695d0ebdca352a675/src/charms/object.cr#L3

jwoertink commented 3 years ago

oops. I forgot that I already opened an issue on this https://github.com/luckyframework/lucky/issues/1396