@oneblink/apps-react
    Preparing search index...

    Function isAuthorised

    • Determine if the current user is a OneBlink App User for a OneBlink Forms App. Returns false if the current user is not logged in or not authorised for the given SAML groups.

      const isAuthorised = await authService.isAuthorised({
      formsAppId: 1,
      samlGroups: ['group1', 'group2'],
      })
      if (!isAuthorised) {
      // handle unauthorised user
      }

      Parameters

      • __namedParameters: { formsAppId: number; samlGroups?: string[] }
      • OptionalabortSignal: AbortSignal

      Returns Promise<boolean>