Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
r2dliu opened this issue Jan 22, 2024 · 0 comments
Open

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

r2dliu opened this issue Jan 22, 2024 · 0 comments

Comments

@r2dliu
Copy link
Contributor

r2dliu commented Jan 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant