Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wj-mcat/official-account-access-token-center
store and refresh the access token in a lazy mode
https://github.com/wj-mcat/official-account-access-token-center
Last synced: 10 days ago
JSON representation
store and refresh the access token in a lazy mode
- Host: GitHub
- URL: https://github.com/wj-mcat/official-account-access-token-center
- Owner: wj-Mcat
- License: apache-2.0
- Created: 2020-11-20T08:41:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-30T04:31:07.000Z (almost 4 years ago)
- Last Synced: 2024-10-05T05:41:09.392Z (about 1 month ago)
- Language: TypeScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# official-account-access-token-center
> store and refresh the access token in a lazy mode
this is the simple service for one thing: Store and Refresh the token when you need, which has the same expire-time with tencent server. So you can easily use it with [wechaty-puppet-official-account](https://github.com/wechaty/wechaty-puppet-official-account).
## Usage
- pull the docker image
```shell
docker pull mcatwj/wechaty-puppet-official-account-at:latest
```- run & expose service
```shell
docker run -p your-port:8080 mcatwj/wechaty-puppet-official-account-at:latest
```- configure endpoint to puppet-official-account [Optional]
> this is only for someone who use wechaty, refer to : [wechaty-puppet-official-account pr#8](https://github.com/wechaty/wechaty-puppet-official-account/pull/18)
```shell
export WECHATY_PUPPET_OA_ACCESS_TOKEN_PROXY=http://your-endpoint/
```enjoy yourself with `access-token-center` service.
## HISTORY
### v0.0.4 master
1. Enable the expire-time of the access-token same with Tencent server
### v0.0.1 (Nov 20, 2020)
Initial version for AccesToken Center.
1. store & refresh access token with LRU mechanism
2. deploy it as a docker## AUTHOR
[吴京京](http://github.com/wj-Mcat) \
## COPYRIGHT & LICENSE
- Code & Docs © 2020 吴京京 \
- Code released under the Apache-2.0 License
- Docs released under Creative Commons