Passkeys implementation: problem storing webauthn.SessionData as JSON #2355
andrewah64
started this conversation in
General
Replies: 1 comment
-
|
The key part of the error is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm implementing passkeys using webauthn
I have to store information provided by the library in the form of a webauthn.SessionData struct. However, when I try to insert it into a database-column with a datatype of "json" I get this error:
As things stand, I'm just passing a pointer to an instance of the SessionData struct to pgx's NamedArgs function, e.g.:
params = pgx.NamedArgs{"json_param" : SessionDataStruct }Does anyone know if what I'm attempting to do is feasible, and if it is what I need to do to make it work?
Thanks,
Andrew.
Beta Was this translation helpful? Give feedback.
All reactions