@agconnect/auth-server

AppGallery Connect Server-SDK for Node.js auth module

Usage no npm install needed!

<script type="module">
  import agconnectAuthServer from 'https://cdn.skypack.dev/@agconnect/auth-server';
</script>

README

Huawei AppGallery Connect Node.js Server SDK for Auth

Table of Contents

Overview

Most apps need to identify and authenticate users to tailor the app experience for individual users. However, building such a system from scratch is a difficult process. Auth Service can quickly build a secure and reliable user authentication system for your app. You only need to access Auth Service capabilities in your app without caring about the facilities and implementation on the cloud.

For more information, visit the Auth Service Introduction.

Installation

The AppGallery Connect Node.js SDK for Auth is available on npm as @agconnect/auth-server:

$ npm install --save @agconnect/auth-server

To use the module in your application, you can require it from any JavaScript file:

var { AGCClient, CredentialParser }= require("@agconnect/common-server")
var { AGCAuth } = require("@agconnect/auth-server")

If you are using ES6, you can also import the module:

import {AGCClient, CredentialParser} from "@agconnect/common-server"
import{ AGCAuth } from "@agconnect/auth-server"

Supported Environments

We support Node.js 10.12.0 and higher.

Also note that the Huawei AppGallery Connect Node.js Server SDK should only be used in server-side/back-end environments controlled by the application developer.This includes most server and serverless platforms. Do not use the Node.js Server SDK environment in the client.

Documentation

License

Huawei AppGallery Connect Node.js Server SDK for Auth is licensed under the "ISC".