Although the current OAuth works fine, it is better to use already-established solutions and libraries. ~[Lucia](https://lucia-auth.com/tutorials/github-oauth/) and [Arctic](https://arctic.js.org/providers/microsoft-entra-id) can be used in conjunction.~ Use [Arctic](https://arcticjs.dev/providers/microsoft-entra-id) for microsoft oauth solution.