These methods should get and set the identity of the current user. The set method should be initiated from another internal function after authenticating the users' current identity. This can be something such as validating the JWT stored on the users' end with the one stored in the database and invalidating their identity if it's invalid.
These methods should get and set the identity of the current user. The set method should be initiated from another internal function after authenticating the users' current identity. This can be something such as validating the JWT stored on the users' end with the one stored in the database and invalidating their identity if it's invalid.
https://github.com/heyitsmass/BayView/blob/b335f46bd55299100313360e111e700b8bc3f6a0/src/types/ItineraryManager.ts#L56-L62