Spaceface16518
07/18/2022, 2:11 AMoptions.data for signUp, but never have it be part of the JWT again? I'll store it in a public.profiles table using a trigger (I am already creating the profile with a trigger), but I want to be able to set the name in a single step. If it is not possible to have a temporary value in user_metadata, is there a way to do this that doesn't use user_metadata?silentworks
07/18/2022, 10:28 AMshinei
07/18/2022, 10:29 AMshinei
07/18/2022, 10:29 AMauth.user tableshinei
07/18/2022, 10:29 AMprofiles tablesilentworks
07/18/2022, 10:31 AMshinei
07/18/2022, 10:39 AMauth.user table?shinei
07/18/2022, 10:39 AMshinei
07/18/2022, 10:40 AMsilentworks
07/18/2022, 10:54 AMgaryaustin
07/18/2022, 12:03 PMgaryaustin
07/18/2022, 12:14 PMshinei
07/18/2022, 2:13 PMshinei
07/18/2022, 2:13 PMgaryaustin
07/18/2022, 2:15 PMshinei
07/18/2022, 2:48 PMshinei
07/18/2022, 2:49 PMshinei
07/18/2022, 2:49 PMshinei
07/18/2022, 2:49 PMshinei
07/18/2022, 2:50 PMgaryaustin
07/18/2022, 2:57 PMshinei
07/18/2022, 3:00 PMshinei
07/18/2022, 3:00 PMshinei
07/18/2022, 3:01 PMshinei
07/18/2022, 3:02 PMgaryaustin
07/18/2022, 3:07 PMsilentworks
07/18/2022, 4:03 PMsilentworks
07/18/2022, 4:06 PMpublic.profiles table, after that you don't need to update any data in the user metadata in the auth.users table. You can even setup a cron to wipe the existing data if you wish or just leave it there because you will be defining which information you display in your app anyway.silentworks
07/18/2022, 4:07 PMauth.users table, you don't need to update it in both.shinei
07/18/2022, 4:08 PMshinei
07/18/2022, 4:08 PMshinei
07/18/2022, 4:08 PMshinei
07/18/2022, 4:09 PMprofiles table, and is never written to the users tableshinei
07/18/2022, 4:09 PMsilentworks
07/18/2022, 4:10 PMpublic.profiles table after you store the information from the auth.users.user_metadata into it, you can completrly ignore the auth.users.user_metadata after that. No need to keep anything in sync because you will be using the display name from the public.profiles table.silentworks
07/18/2022, 4:13 PMfullName is coming from the public.profiles table https://github.com/silentworks/waiting-list/blob/main/src/routes/manage/_layout.svelte#L9