Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@line/liff-main-profile-plugin

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@line/liff-main-profile-plugin

A LIFF Plugin to get and auto-fill forms _main profile data_ from Account Center.

  • 0.0.1
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by30.77%
Maintainers
4
Weekly downloads
 
Created
Source

@linecorp/liff-main-profile-plugin

A LIFF Plugin to get and auto-fill forms main profile data from Account Center.

  • Project wiki
  • LIFF - Main Profile - Functional Specification
  • LIFF - Main Profile - Solution Architecture - LIFF Plugin

How to use

CDN

CDN versions of packages can be imported using the script tag as shown below.

index.html

<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" href="/src/favicon.ico" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- beta -->
    <script src="https://line-objects-internal.com/v2-assets-4/liff-main-profile/edge/beta/0.0.1/index.umd.cjs"></script>
    <title>LIFF App</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="/index.js"></script>
  </body>
</html>

The package is then defined in the global object with the name liffMainProfile. So you can use the package as a LIFF Plugin as follows in the js/ts file.

index.js

liff.use(new liffMainProfile.LiffMainProfilePlugin());
await liff.init({ liffId: "xxx" });

const profile = await liff.$mainProfile.get();
liff.$mainProfile.fill(profile);

npm

npm install @linecorp/liff-main-profile-plugin`
import { LiffMainProfilePlugin } from "@linecorp/liff-main-profile-plugin";

liff.use(new LiffMainProfilePlugin());
await liff.init({ liffId: "xxx" });

const profile = await liff.$mainProfile.get();
liff.$mainProfile.fill(profile);

Environments

CDN

Dashboard: https://orth.linecorp.com/project/liff-main-profile

envurl
Betahttps://line-objects-internal.com/v2-assets-4/liff-main-profile/edge/beta/0.0.1/index.umd.cjs
RCTBD
RealTBD

npm

Dashboard: https://npm.linecorp.com/-/package/@linecorp/liff-main-profile-plugin

envnpm
Betanpm install @linecorp/liff-main-profile-plugin@beta
RCTBD
RealTBD

Development

Install

nvm use
npm i

Deployment

Beta

A pull request for merging into deployment/beta is automatically generated.

RC

TBD

Real

TBD

FAQs

Package last updated on 25 Mar 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc