The nitro session fetch hook is likely to be used for implementing the necessary checks to ensure token validity, this might require making additional network requests to the pertinent authentication server.
The current implementation results in the aforementioned checks being made twice whenever the session cookie is present, and the earlier checks have failed (returned throw createError() within session fetch hook), hence resulting in unnecessary overhead.
The nitro session fetch hook is likely to be used for implementing the necessary checks to ensure token validity, this might require making additional network requests to the pertinent authentication server.
The current implementation results in the aforementioned checks being made twice whenever the session cookie is present, and the earlier checks have failed (returned
throw createError()
within session fetch hook), hence resulting in unnecessary overhead.