1.1.7 • Published 9 months ago

@basiq/connect-auth v1.1.7

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Basiq Connect Component

The Basiq Connect Auth is a ReactJS UI component exposed to partners who prefer to implement the auth flow as an external component with an SMS OTP built in. When rendered, it will take the user through an SMS OTP flow and then proceed to redirect them to the Basiq Consent UI flow to connect their accounts.

Note: This has been offered as an interim solution for partners who require access to v3 of the API before we have released the upgrades to https://connect.basiq.io/. If you have any questions regarding this, please reach out to support@basiq.io.

Setup

  1. Install @basiq/connect-auth and import the component

    $ npm install @basiq/connect-auth
    import { BasiqConnect } from "@basiq/connect-auth";
  2. Generate a new Auth Link, and retrieve the auth link ID from the public URL that is returned.

    try {
      const { data } = await axios.get(
        `https://au-api.basiq.io/users/{userId}/auth_link`,
        {
          method: 'post',
          headers: {
            Authorization: `Bearer ${YOUR_SERVER_ACCESS_TOKEN}`,
            Accept: 'application/json',
            'Content-Type': 'application/json',
          },
        }
      );
    
      let auth_id = data.links.public.replace('https://connect.basiq.io/','');
    
      return auth_id;
    
    } catch (error) {
      console.log(error)
    }
  3. Drop the component in your code on the page you wish to call it. The component will retrieve the auth_id from the URL, so failing to include it there will result in an error. Note that the component is full page and will eventually handle the redirect to the Basiq Consent UI, so it should be rendered on its own page (or conditionally, after appending an auth_link ID).

    // Component rendered at /auth-link/:auth_id
    
    export default function Auth() {
      return (
          <main>
            <BasiqConnect />
          </main>
      );
    }

Updates

OTP Code Length Increased: The OTP code length has been increased from 4 to 6 characters to enhance security.

Demo

You can see a demo of the Basiq Connect Auth component here.

1.1.7

9 months ago

1.1.6

9 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.0.15

12 months ago

1.0.14

12 months ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.10

3 years ago

0.1.91

3 years ago

0.1.9

3 years ago

0.1.89

3 years ago

0.1.88

3 years ago

0.1.87

3 years ago

0.1.86

3 years ago

0.1.85

3 years ago

0.1.84

3 years ago

0.1.83

3 years ago

0.1.82

3 years ago

0.1.81

3 years ago

0.1.8

3 years ago

0.1.79

3 years ago

0.1.78

3 years ago

0.1.77

3 years ago

0.1.76

3 years ago

0.1.75

3 years ago

0.1.74

3 years ago

0.1.73

3 years ago

0.1.72

3 years ago

0.1.71

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago