0.3.0 • Published 7 months ago

@unservice/wechat-token-service v0.3.0

Weekly downloads
-
License
-
Repository
github
Last release
7 months ago

Wechat token service

NPM Version

The simplest and most lightweight WeChat access token maintenance library

  • A server for maintaining WeChat access token
  • A RPC client to get WeChat access token from the server

Run server

// app.ts

import { createServer } from '@unservice/wechat-token-service'

const app = createServer({
  appId: '',
  appSecret: '',
  apiDomain: '',
})

export default app

Use bun

bun run app.ts

Use client

const client = createClient('server origin')

const token = await client.token.$get().then((res) => res.text())

Authentication

As you like!

0.3.0

7 months ago

0.2.3

7 months ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago