How do I use refresh tokens in Custom Auth OAuth2 generic flow?

Would you be able to try using Custom Auth instead of OAuth2 to get this setup? Or do you know if you're able to manually pass in the scopes you need for the refresh flow?