Sha256: 48a9db5b2799c485f752472e256a9dadd0408633bc0ecbfffff23c132db53bbf
Contents?: true
Size: 538 Bytes
Versions: 4
Compression:
Stored size: 538 Bytes
Contents
RSpec.shared_context "set_authorization" do let(:'Organization-Id') { SecureRandom.uuid } let(:organization_id) { send(:'Organization-Id') } let(:payload) do { iss: "DocShell", iat: DateTime.now.to_i, jti: SecureRandom.uuid, exp: (DateTime.now + 1.year).to_i, account: { id: SecureRandom.uuid, email: Faker::Internet.email, }, permissions: { organization_id => permissions } } end let(:Authorization) { "Bearer #{Care::JwtService.new.encode(payload)}" } end
Version data entries
4 entries across 4 versions & 1 rubygems