985 B
985 B
Auth Notes
- starting the pocketbase as framework
- plan
- start pocketbase
- add middlewares for cookie session
- add index page, that will have either "current user" or 'login' link
- 'login' link should open dialog with oauth providers
- i guess i would also like to send htmx event for reloading the page
- add one more page that checks auth
- add tailwind styling
- package static into single binary
- write nix build
- write nixos module
- add docker image from nix
- add readme and comments
starting the pocketbase as framework
plan
DONE start pocketbase
DONE add middlewares for cookie session
TODO add index page, that will have either "current user" or 'login' link
TODO 'login' link should open dialog with oauth providers
so, i want a window with available oauth providers, to trigger the js code from example https://pocketbase.io/docs/authentication/ ( all in one, recommended )
let's get configured providers in the go code, add as slice of strings, and in template create buttons for each of those with js code from the example
TODO i guess i would also like to send htmx event for reloading the page
on successful auth?