Use stored Oauth refresh token in custom webhook?

I’m building an app using the Truelayer API, where UK financial services providers require the user to reauthenticate every 90 days. There is a special endpoint for reauthentication that takes a refresh token and returns a temporary link for the user to extend their connection. Docs here: https://docs.truelayer.com/reference/generatereauthlink

I have my Truelayer connection working using Foundry’s built in Oauth client with the two token exchange webhooks. The hook for exchanging a refresh token for an access token just takes refresh_token as a string input parameter, and then Foundry “knows” to insert the stored refresh token there. But if I make refresh_token an input parameter in my reauthentication webhook then Foundry asks me to provide it manually. Is there a way to access the stored refresh_token for use in custom webhooks?

Thank you!

I have not seen a first class support for the refresh token flow in Foundry, in the sense that a refresh token is used to get an access token and the new refresh token is stored in the Source. (Have a FR for this open since a few years)

You can workaround this with an incremental external transform but it’s not straightforward.