Thanks @Nicolas great timing - we’re actually working on supporting oAuth2 user authorization in Functions now. This is planned to be part of the general availability release, and you also should be able to test it in the sandbox release, in a month or so.