English | ÖÐÎÄ
- Introduction
- Preparing the Environments
- Getting Started
- Sample Code
- Result
- Question or issues
- License
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.
- Before using the auth server sdk, your server needs support Node.js v10.12.0 and higher.
Before running the auth server sdk, you need to:
- If you do not have a HUAWEI Developer account, you need to register an account and pass identity verification.
- Use your account to sign in to AppGallery Connect, create a project.
- Go to Project settings > Server SDK, click Create under API client, then click Download credential.
- Save the downloaded authentication credential file agc-apiclient-xxx-xxx.json to the specified path. The file will be used during SDK initialization in index.js.
- Run the following code in terminal in the demo path, and demo will start.
# install AGC auth-server sdk npm install --save @agconnect/auth-server@1.1.0 # run demo npm run build
- More details about Auth-Server
Sample code: index.js
If you have questions about how to use AppGallery Connect Demos, try the following options:
- Stack Overflow is the best place for any programming questions. Be sure to tag your question with
AppGallery
. - Huawei Developer Forum AppGallery Module is great for general questions, or seeking recommendations and opinions.
If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.
This quickstart is licensed under the Apache License, version 2.0.