I want to create a new user context that includes ...
# support-questions-legacy
b
I want to create a new user context that includes a request in golang, how can i do that?
r
hey. You can do it as shown here
b
Also are user contexts emphemeral or persistent?
Maybe what I am actually lookin for is the user metadata store
user context is per API call .
per request instance essentially
b
got it.. might be mistaking the wrong thing then
let me look into the metadata docs instead, but the above is useful too
r
yea, or you can save info per session as well..
b
Can you elaborate on that one 👀
r
right. You can save info in the access token payload / session data in db, and this data will be saved per session. If you want to save some data per user, you can use our metadata recipe.
b
ah. I still need to use user context. I need to pass in skipCaptcha if i'm overriding emailpasswordsignup
r
i see.
b
Copy code
go
    userContext := map[string]any{"skip_captcha": true}
    supertokens.SetRequestInUserContextIfNotDefined(&userContext, request)
r
yup.
4 Views