atinux / nuxt-auth-utils

Add Authentication to Nuxt applications with secured & sealed cookies sessions.
MIT License
974 stars 91 forks source link

refactor: handle missing configuration error #145

Closed Barbapapazes closed 2 months ago

Barbapapazes commented 2 months ago

Hello 👋,

This PR tries to unify the way configuration errors are handled by creating a single function handleMissingConfiguration.

This is the first PR in a series trying to simplify each provider event handler and standardize errors and reducing code redundancy.

This reduce the bundle size (dist/runtime) from 84.1ko to 83.7ko