Hello again Ory! Can someone tell me where the cod...
# ory-network
c
Hello again Ory! Can someone tell me where the code executed by the require_verified_address hook resides? I've tried looking around, but sweet jesus, Kratos is a big repo 😇
c
Thanks, friend!
Copy code
info

Modifying the identity is currently only possible during the registration and settings flows.
Any chance this will be supported in the Login one too at some point? We use the identity.PublicMetadata for multi-tenancy, and it's nice to be able to set it on login if it does not already exist 😊
h
Not very likely, because that would put heavy load onto the system 😕
c
Ah, that's fair, My approach for now was simply to return an empty object unless something has changed, in which case I add the change (like an upsert or a patch, right?) to the response
But honestly it's not a big deal to make a call to the IdentityAPI and do the update from inside the webhook instead 🙂
Thanks!
h
No problem 🙂 Just keep in mind that changes to the identity api will not immediately be reflected in the session if you use edge sessions
c
Oh yeah, that's kind of a yikes
I do this on login though, so the session does not yet exist
If the webhook blocks the session from getting created (parseResponse == true), updates the identity, returns 200 OK, then the session gets created, right?
h
Not sure to be honest, could work but also could not 😅
c
Oooh, very exciting 🔥