getLoginEncrypted
Authenticates the user using encrypted credentials. During login request if `encrypted_token` is set to true, the backend generates a JWE (JSON Web Encryption) token, which is returned in the response and can later be used for authentication. In this case in consumer application can be uses getLoginEncrypted passing JWE token keeping user authenticated
Documentation
Try it now
Request parameters:
Call example:
getLoginEncrypted({
authToken: 'DDD53B548E810432BF290755D3B72A16',
jweToken: 'eyJhbGciOiJBMjU2S1ciLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIn0.TnhoqRFVnXdJACy0gIB9uz_3oFn7tbqLtTJN89pT-Vn77yNKYlYVYionRFknd779ENoC_gsr4JAWwC2InDKTKRSGP-vPqTvQ.z5d86qaeE_K6vvF6oau0ZQ.UdT1OFvdhs52Cz3cEB_roYBE8aDckUdlQbxilu7oID1wcGlKcdWxEivZnrd3MDFR5DD_ckJ0cDcXNk0Y66QHKHiQq7HaqQBJ-QoaWI3zSIfWT5sRNwU8rqwgd6y0fv4nJuTGtYBmGvzo4_h93K1oYoxcN-93wuXOp_2na3ExDR5vNg4PIqDb__R7iR4TTVzW.zwgfrioJCb4590c9Fc_0MtNv6MwejU2FDqvAGbgrbXk'
})Response examples:
{
code: 0,
rid: 624070344,
data: {
subid: '-6081971476452034901',
data: {
profile: {
'1529861660': {
id: 1529861660,
_parent_id: null,
unique_id: 1529861660,
username: 'test434',
name: 'Alik Harutyunyan asdfghjkl',
first_name: 'Alik Harutyunyan',
last_name: 'asdfghjkl',
middle_name: null,
gender: 'M',
email: '[email protected]',
phone: '374123455',
reg_info_incomplete: false,
address: 'asdfghnnnnnnnn',
reg_date: '2023-07-07',
birth_date: '2001-03-01',
doc_number: 'wertyui',
casino_promo: null,
currency: 'TUS',
currency_id: 'TUS',
currency_name: 'USDT',
balance: 47.28,
casino_balance: null,
exclude_date: null,
bonus_id: -1,
games: 0,
_level: 'profile',
super_bet: null,
country_code: 'BS',
doc_issued_by: null,
doc_issue_date: null,
doc_issue_code: null,
province: null,
iban: null,
active_step: 1,
active_step_state: 4,
subscribed_to_news: false,
bonus_balance: 0,
frozen_balance: 0,
bonus_win_balance: 0,
city: 'Nassau23234',
has_free_bets: false,
loyalty_point: 63.02,
loyalty_earned_points: 0,
loyalty_exchanged_points: 0,
loyalty_level_id: 3270,
affiliate_id: null,
is_verified: true,
incorrect_fields: null,
loyalty_point_usage_period: 0,
loyalty_min_exchange_point: 0,
loyalty_max_exchange_point: 0,
active_time_in_casino: 0,
last_read_message: null,
unread_count: 0,
last_login_date: 1774259116,
swift_code: null,
counter_offer_min_amount: 20,
sportsbook_profile_id: 10,
subscribe_to_email: true,
subscribe_to_sms: true,
subscribe_to_bonus: true,
is_tax_applicable: false,
nem_id_token: null,
mobile_phone: null,
personal_id: null,
zip_code: null,
additional_address: null,
btag: null,
birth_region: null,
supported_currencies: null,
wallets: null,
previous_login_time: null,
nick_name: null,
is_super_bet_available: true,
is_gdpr_passed: false,
subscribe_to_internal_message: true,
subscribe_to_push_notification: true,
subscribe_to_phone_call: true,
title: null,
terms_and_conditions_version: '1',
terms_and_conditions_acceptance_date: '2024-07-23',
last_preferred_currency: null,
is_agent: false,
is_two_factor_authentication_enabled: false,
authentication_status: 0,
qr_code_origin: null,
session_duration: null,
is_new_client: null,
unplayed_balance: 0,
language: 'ru',
exclude_type: null,
is_bonus_allowed: true,
casino_bonus: 0,
casino_bonus_win: 0,
birth_city: null,
client_pep_status: null,
cashdesk_id: null,
last_sport_bet_time: 1773667063,
sport_bonus: 0,
is_phone_verified: false,
is_mobile_phone_verified: false,
limit_check_state: null,
deposit_count: 0,
bonus_money: 0,
loyalty_last_earned_points: 0,
is_cash_out_available: true,
external_id: '0xe56e7AcA0441480326400C35c95926033c71472a',
doc_region_id: 0,
last_login_ip: '91.103.58.245',
status: 2,
currencies: 'FTN,TRX,ETH,BTC,MBT,MET',
is_email_verified: false,
loyalty_level_name: '1',
is_resident: false,
is_subscribe_to_casino_news_letter: true,
is_subscribe_to_casino_email: true,
is_subscribe_to_casino_sms: true,
is_subscribe_to_casino_bonus: true,
is_subscribe_to_casino_internal_message: true,
is_subscribe_to_casino_push_notification: true,
is_subscribe_to_casino_phone_call: true,
is_subscribe_to_direct_mail: true,
needs_subscriptions_update: false
}
}
}
}
}