---
# System prepended metadata

title: '[Ruby On Rails][vue][jwt]簡易jwt實作:使用rails+vue'
tags: [vue, jwt, Ruby On Rails]

---

# [Ruby On Rails][vue][jwt]簡易jwt實作:使用rails+vue

###### tags: `Ruby On Rails`,`vue`,`jwt`


小弟的github:
https://github.com/twkhjl/vue-rails-jwt

JWT官網:
https://jwt.io/

JWT的gem:
https://github.com/jwt/ruby-jwt



rails後端是~~抄襲~~參考此網址:
https://github.com/riskimidiw/rails-jwt/blob/e6bbb582010d760f78f0260f45906374041b154c/app/controllers/application_controller.rb

cors的處理是使用這個gem:
https://github.com/cyu/rack-cors

