Are you building an app that needs OAuth flow? Well, you’ll need to create a built-in hook that helps with that. This documentation will help you get started!

This built-in hook manages the communication with the Unbounce backend by itself.

This hook must be the app ID you’ve defined in the manifest file, or you’ll have to include it manually.

This built-in hook is called the useAppOauth:

export const useAppOauth = (appId: AppId) => {
  ...// private code
  return { authState, triggerConnect, triggerRetry, credentialsId };
};

When using the useAppOauth hook, we get an object with the following properties:

Key Takeaways