pusher / pusher-platform-ruby

Sample authorizer component in Ruby
0 stars 4 forks source link

Add `"refresh": true` claim to refresh token, and check for presence when refreshing #1

Closed jameshfisher closed 7 years ago

jameshfisher commented 7 years ago

Currently the refresh token is strictly more powerful than an access token, defeating the point of this mechanism. There needs to be some way to distinguish them, and verifiers should check whether the token they receive is of the expected type.