Hello! I would like to ask for a hint to implement...
# contributors
c
Hello! I would like to ask for a hint to implement feature of PKCS for social providers. https://github.com/ory/kratos/issues/4009 What is the correct/best place to persist generated code before sending user to identity provider and to validate it when it is returned back to callback. Should we create a new persister and new database table or reuse some existing? I couldn`t find any that would fit persister_sessiontokenexchange seems to be usable but not quite sure. Thank you very much
h
You can probably store it in the login_flow/registration_flow/settings_flow’s
InternalContext
. We use it also for temporarily saving things such as lookup codes or TOTP (you can check there how we do it)
c
Will give it a try. Thank you!
🙌 1