mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
361 B
TypeScript
19 lines
361 B
TypeScript
import express = require('express');
|
|
import * as weAccessMiddleware from 'express-wechat-access';
|
|
|
|
const app: express.Application = express();
|
|
|
|
const options: weAccessMiddleware.WeAccessMidOption = {
|
|
appId: 'xxxxx',
|
|
appSecret: 'xxxxx'
|
|
};
|
|
|
|
app.use(
|
|
weAccessMiddleware(
|
|
options,
|
|
e => {
|
|
console.error(e);
|
|
}
|
|
)
|
|
);
|