WZWren / night-sentry

0 stars 0 forks source link

App does not handle multisession users #2

Open WZWren opened 1 year ago

WZWren commented 1 year ago

Due to the way we handle the ExponentToken for Expo Notifications, a user logged into multiple phones with the same account will not be able to receive alerts properly.

The proposed way to handle this is to have a session table on the backend - when logged in, simply flag the account accordingly as logged in and reject all logins in the future. The flag will likely have to be the JWT token passed back to the user on sign in.