0.0.1-alpha3 • Published 2 years ago

@authing/browser v0.0.1-alpha3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Official SDK of Authing for Browser

English | 简体中文

Introduction

You can use the Authing Browser SDK to quickly integrate authentication capabilities for new or existing web applications

Documentation

Install

NPM

$ npm install @authing/browser

Yarn

$ yarn add @authing/browser

Use script tag

<script src="https://cdn.jsdelivr.net/npm/@authing/browser"></script>
<script>
  const sdk = new Authing({
    // Very important, please fill in carefully!
    // If the application enables SSO, you must write the "App Panel Address" for SSO here;
    // otherwise, fill in the application's "Subdomain".
    domain: "SSO App Panel Address",
    appId: "App ID",
    // The login callback address needs to be specified in the console
    // "Configuration - Authentication Configuration - Login Callback URL"
    redirectUri: "Login Callback URL",
  });
</script>

Contribution

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push -u origin my-new-feature)
  • Create new Pull Request

License

MIT

Copyright (c) 2019-present, Authing