agnyz/the-bed-stack

Rename `auth.ts`

yamcodes opened this issue · 2 comments

We should rename the src/auth.ts file to clarify its scope as a clear component in our architecture.

In #47, I offered to rename it to auth.middleware.ts or auth.service.ts, but @Hajbo brought up the fact it currently is out of scope of a service or middleware.

We should either make it one of those, or figure out if utils are in the best practices of Nest.js.

Hajbo commented

We can probably make it into a service if we really want to

We can probably make it into a service if we really want to

Yes! I really want to.

It would make all my dreams come true.

Please check the linked PR.