thinknimble / tn-spa-bootstrapper

A production-ready Django SPA app on Heroku in 20 minutes or less!
https://tn-spa-bootstrapper-staging.herokuapp.com/
MIT License
8 stars 9 forks source link

token is still a field on usermodel on react side #271

Open r2dliu opened 9 months ago

r2dliu commented 9 months ago

Looks like token is stored separately in the useAuth zustand store

But user model by default looks like

export const userShape = {
  ...baseModelShape,
  email: z.string().email(),
  firstName: z.string(),
  lastName: z.string(),
  token: readonly(z.string().nullable().optional()),
  interests: z.array(z.string()),
}

looks to me like token should not really exist on the userShape anymore