@atatctech/athena-sdk

1.2.1 • Public • Published

AthenaSDK-JS

JavaScript SDK for Athena2.

Installation

npm i @atatctech/athena-sdk

Usage

const instance = useAthena();
test(instance,
    () => {
    console.log("online");
}, () => {
    console.log("unavailable");
}, undefined, () => {
    console.log("offline");
});

Create an Instance

const baseUrl = "http://localhost";
const port = 8080;

const instance = useAthena(baseUrl, port);

baseUrl refers to the backend server address. In this case, it is set to "http://localhost" instead of "https://athena2.atatctech.com" by default.

port specifies the port that the server listens.

The following example is equivalent to the one above.

const instance = useAthena("http://localhost:8080");

APIs

  • test()
  • userExists()
  • signUpRequest()
  • signUp()
  • signIn()
  • directSignIn()
  • athenaAuthToken()
  • getUserByName()
  • getUserByUID()
  • getUsers()
  • getUsersByUIDs()
  • getUsersWith()
  • getUserByAAT()
  • setUser()
  • setName()
  • setEmailRequest()
  • setEmail()
  • setPasswordRequest()
  • setPassword()
  • revokeTokens()

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.11latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.11
1.2.00
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00
1.0.0-b110
1.0.0-b100
1.0.0-b90
1.0.0-b80
1.0.0-b70
1.0.0-b60
1.0.0-b50
1.0.0-b40
1.0.0-b30
1.0.0-b20
1.0.0-b10
1.0.0-b00

Package Sidebar

Install

npm i @atatctech/athena-sdk

Weekly Downloads

1

Version

1.2.1

License

The Apache License, Version 2.0

Unpacked Size

67.8 kB

Total Files

27

Last publish

Collaborators

  • atatc