Socket
Book a DemoInstallSign in
Socket

hana.asdfasdf

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

hana.asdfasdf

Hana SDK for JavaScript

0.0.1
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

hana.js

Hana SDK for JavaScript

설치하기

Using NPM

npm install hana.js

Using Yarn

yarn add hana.js

Using CDN

<script src="https://"></script>

시작하기

JavaScript SDK 초기화 예제입니다.

const Hana = require("hana.js")

Hana.init()

기능 명세

Hana.Auth.authorize

사용자가 앱에 로그인할 수 있도록 인가 코드를 요청하는 함수입니다. 인가 코드를 받을 수 있는 서버 개발이 필요합니다.

Hana.Auth.authorize({
  redirectUri: "https://hana.ooo/authorize",
})

입력인자

NameTypeRequiredDescription
redirectUristringN인가 코드를 받을 URI
scopestringN추가 동의 받을 항목

Hana.Auth.token

사용자가 앱에 로그인할 수 있도록 인가 코드를 요청하는 함수입니다. 인가 코드를 받을 수 있는 서버 개발이 필요합니다.

Hana.Auth.token({
  redirectUri: "https://hana.ooo/authorize",
  code: "128ba3b3-f2ca-4a33-afaf-aae20ba79093",
})

입력인자

NameTypeRequiredDescription
redirectUristringY인가 코드를 받을 URI
codestringY추가 동의 받을 항목

출력결과

{
  access_token: '...',
  expires_in: 3599,
  id_token: '...',
  scope: 'openid',
  token_type: 'Bearer'
}

FAQs

Package last updated on 23 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.