Sha256: 82e9aff5d3621997dd2a692379cb11a106c5bd12c27c7328a7df9debd2c34539
Contents?: true
Size: 544 Bytes
Versions: 10
Compression:
Stored size: 544 Bytes
Contents
# frozen_string_literal: true require_relative '../shared_contexts/with_applicant' describe Onfido::SdkToken do describe 'SDK token' do include_context 'with applicant' it 'generates a SDK token' do token_builder = Onfido::SdkTokenBuilder.new({ applicant_id: applicant_id, referrer: 'https://*.example.com/example_page/*', }) token = onfido_api.generate_sdk_token(token_builder) expect(token).to be_an_instance_of Onfido::SdkToken expect(token.token.size).to be > 0 end end end
Version data entries
10 entries across 10 versions & 1 rubygems