GithubHelp home page GithubHelp logo

talelin / lin-cms-koa-core Goto Github PK

View Code? Open in Web Editor NEW
49.0 49.0 21.0 1.74 MB

A simple and practical CMS implememted by koa

Home Page: https://talelin.github.io/lin-cms-koa-core/index.html

License: MIT License

JavaScript 10.56% TypeScript 89.28% Shell 0.16%
cmf cms koa lin

lin-cms-koa-core's People

Contributors

lucienstar avatar qiulonghui avatar smileshirmy avatar vanoneang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lin-cms-koa-core's Issues

accessExp bug

const jwt = new Token(

这儿要用工厂模式,否则accessExp 是服务启动时生成值,以后固定不变。 改为(js):

const jwt = ()=> {   
  return new Token(   
  config.getItem("secret"),   
  config.getItem("accessExp"),   
  config.getItem("refreshExp")   
) 
}

引用jwt改:
jwt().createAccessToken(user.id)

如果改accessExp=60 * 60; // 1h; 虽可行,但Token类的意义偏离了,应每个token的实例不同,才能准确表达token对象定义。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.