Hyacinthus
Hyacinthus
@Hentioe Yes, thank you, I've forked it and merge it to use jwt-go 3.x.
@PhanHaHus I use Echo in my new projects now... It's much better than go-json-rest :)
@PhanHaHus Echo has a cookbook too.
So seven months have gone...
Great news.
其实不矛盾,只要给出取 access token 的方法就可以让别的地方用了。自己用就可以隐藏。 不过那样就需要一个初始化过程了,现在都没有初始化的,都直接是函数哈哈。
试用了一下v3, 自定义的cache有key参数令人有点迷惑。。 也许想着将来不止cache token 吗 总之自定义的话,应该把key的命名交给开发者。 这里应该只做个 token cache 就好了。
Yes, I agree with this issue too much, it confused me for a long time and was too counter-intuitive.
I also made a bug once because of this issue.
But it's too late to change the name for forward compatibility, so maybe highlight it in the comments file to emphasize it.