Sha256: 8bb8120fbc251a6f9dd473ced83d3a42e2108342f46ee647e4ff508e22788200
Contents?: true
Size: 236 Bytes
Versions: 4
Compression:
Stored size: 236 Bytes
Contents
module AuthHelper def auth_headers(user) token = Knock::AuthToken.new(payload: { sub: user.id }).token { 'Authorization': "Bearer #{token}" } end end RSpec.configure do |config| config.include AuthHelper end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
unsakini-0.0.5 | spec/support/auth_helper.rb |
unsakini-0.0.5.pre.1 | spec/support/auth_helper.rb |
unsakini-0.0.4.pre.1 | spec/support/auth_helper.rb |
unsakini-0.0.4.3 | spec/support/auth_helper.rb |