GenieFramework / GenieAuthentication.jl

Authentication plugin for Genie framework
MIT License
20 stars 11 forks source link

current_user() is not defined #22

Closed alerem18 closed 1 year ago

alerem18 commented 1 year ago

can't use it anywhere, also read the source code and there is no method current_user()

essenciary commented 1 year ago

Have you successfully followed the installation instructions? Are you correctly loading the plugin?

alerem18 commented 1 year ago

Have you successfully followed the installation instructions? Are you correctly loading the plugin?

yes, and where is the current_user implementation in source code?

essenciary commented 1 year ago

Once you correctly install the plugin, you will have a plugins/genie_autentication.jl file in your app. That's where it is.

alerem18 commented 1 year ago

yes i see it but i've installed the plugin succuessfully

essenciary commented 1 year ago

Can you share your app?

alerem18 commented 1 year ago

Can you share your app?

i can just redefine current_user in my code but i wonder it's not working now https://github.com/alerem18/Uploader

essenciary commented 1 year ago

@alerem18 seems to work fine. It looks like you haven't required the authentication: CleanShot 2023-06-12 at 18 58 07@2x

alerem18 commented 1 year ago

i did it on purpose by the way, i used authenticated() instead to handle my custom logic, but it wasn't working for me idk why