0.4.0 • Published 1 year ago

drupal-auth-client v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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.4.0

1 year ago

0.3.2

1 year ago

0.3.0

1 year ago

0.3.1

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago