Google OAuth Flow from inside a plugin

Currently I am building a plugin, we are planning to integrate our API endpoint to bring our designs to life with actual content, but I have hit a road block.

I am already logged into to Figma with our Companies SSO authentication flow. I have 2 questions

  1. Is there a way to share the user login token so we could use this as Authorization to our API calls.
  2. Is there a way to implement my own Google Auth flow from inside the plugin.

Thanks for your help
Sylvester

I’ve never done this myself but this doc from the Figma team could help:

1 Like