heyitsmass / BayView

The next generation reservation tracking and notification system
https://bayview.dev
MIT License
1 stars 2 forks source link

ItineraryFlow storage methods #27

Closed heyitsmass closed 11 months ago

heyitsmass commented 1 year ago

These are the methods the flow should use to determine which storage method to use. If the user is in a logged in state or their identity has been authenticated, then we can use the database (the use has permitted this). Otherwise if the user is in a guest state then we should opt to use their localStorage.

https://github.com/heyitsmass/BayView/blob/b335f46bd55299100313360e111e700b8bc3f6a0/src/types/ItineraryManager.ts#L64-L70