Closed IsraelOrtuno closed 1 month ago
Seems like secure type (https://github.com/atinux/nuxt-auth-utils/blob/main/src/runtime/types/session.ts#L14) can't be augmented just like in #54. This PR extracts the secure property type to a separated interface SecureSessionData that allows augmentation/overriding the default typings.
secure
SecureSessionData
This would allow to add better typing to the secure property:
// auth.d.ts declare module '#auth-utils' { interface SecureSessionData { token: string } } export {}
Thank you, and you updated the readme too ❤️
Seems like
secure
type (https://github.com/atinux/nuxt-auth-utils/blob/main/src/runtime/types/session.ts#L14) can't be augmented just like in #54. This PR extracts thesecure
property type to a separated interfaceSecureSessionData
that allows augmentation/overriding the default typings.This would allow to add better typing to the
secure
property: