I rolled my own auth [0] and it works just fine. Why do I need another service for Auth, it's simple enough already. I guess B2B products need more auth features so it's worth using a library?
[0] https://github.com/wakatime/crackboard.dev/blob/main/package...
Thanks for sharing, your code looks good.