0.3.2 • Published 1 month ago

drupal-auth-client v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Drupal Auth Client

Prerequisites

Make sure your Drupal site is using the simple_oauth Drupal module.

Usage

Importing library

import { drupalAuthClient } from "drupal-auth-client"

Using client_credentials

const client = drupalAuthClient(
  "https://drupal.site",
  "client_credentials",
  {
    clientId: "client_id",
    clientSecret: "client_secret",
  },
)

Using password

const client = drupalAuthClient(
  "https://drupal.site",
  "password",
  {
    username: "username",
    password: "password",
    clientId: "client_id",
    clientSecret: "client_secret",
  },
)

Supporting organizations

Development sponsored by Octahedroid

0.3.2

1 month ago

0.3.0

2 months ago

0.3.1

2 months ago

0.2.1

12 months ago

0.2.0

1 year ago

0.1.0

1 year ago