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

    Function forgotPassword

    • Allow a user to start the forgot password process. The user will be emailed a temporary code that must be passed with a new password to the function returned.

      const username = 'user@email.io'
      const finishForgotPassword = await authService.forgotPassword(username)

      // Prompt the user to enter the code and a new password
      const code = prompt(
      'You have been emailed a verification code, please enter it here.',
      )
      const newPassword = prompt('Please enter a new password to continue.')
      await finishForgotPassword(code, newPassword)

      Parameters

      • username: string
      • OptionalformsAppId: number

        Used to give the resulting email sent to the user associated forms app branding and sending address

      Returns Promise<(code: string, password: string) => Promise<void>>