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

    Function handleAuthentication

    • This function should be called when the user is redirected back to your app after a login attempt. It will use the query string add the redirect URL to create a session for the current user. It will return a URL as a string that should be redirected to within your app.

      try {
      const continueTo = await authService.handleAuthentication()
      // Redirect the user back to where they were before attempting to login
      window.location.href = continueTo
      } catch (error) {
      // handle failed login attempts here.
      }

      Returns Promise<string>