Skip to content

Latest commit

聽

History

History
59 lines (40 loc) 路 1.55 KB

README.md

File metadata and controls

59 lines (40 loc) 路 1.55 KB

Logto Vue SDK

Version Build Status Codecov

The Logto Vue SDK written in TypeScript.

Check out our docs for more information.

Installation

Using npm

npm install @logto/vue

Using yarn

yarn add @logto/vue

Using pnpm

pnpm add @logto/vue

Get sample

A sample Vue project with the integration of @logto/vue SDK can be found at Vue Sample.

Check out the source code and try it with ease.

pnpm i && pnpm build
cd packages/vue-sample && pnpm start

Discovery cache

Add enableCache: true to the plugin configuration to cache OIDC discovery metadata in session storage. Caching is disabled by default.

app.use(createLogto, {
  endpoint: 'https://your-tenant.logto.app',
  appId: 'your-app-id',
  enableCache: true,
});

Resources

Website Docs Discord