-
Notifications
You must be signed in to change notification settings - Fork 177
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
Signup auth metadata UUID incompatibility. #521
Comments
I figured it out! just had to enclose the required column into uuid()
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have a function that runs when signing up a user that extracts the metadata and then inserts some values into another table but the issue is inserting values from metadata for columns that require UUID is not possible as UUID is not serialisable in JSON. So I have to send the data as text but the issue is Postgresql throws error saying type expected is of UUID but text given.
To Reproduce
organization_id column ideally requires UUID.
Error
column "organization_id" is of type uuid but expression is of type text
function:
handle_new_user
The text was updated successfully, but these errors were encountered: