rehive.auth.get().then(function(res){ ... },function(err){" ... })
{- "status": "string",
- "data": {
- "id": "string",
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "groups": [
- {
- "name": "string",
- "label": "string",
- "section": "system"
}
], - "temporary": false,
- "id_number": "string",
- "birth_date": "2019-08-24",
- "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account": "string",
- "balance": 0,
- "available_balance": 0,
- "company": "string",
- "owner": true,
- "language": "string",
- "nationality": "AF",
- "residency": "AF",
- "gender": "male",
- "title": "mr",
- "marital_status": "single",
- "fathers_name": "string",
- "mothers_name": "string",
- "grandfathers_name": "string",
- "grandmothers_name": "string",
- "central_bank_number": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "timezone": "string",
- "website": "string",
- "business_name": "string",
- "verified": true,
- "verification": {
- "email": true,
- "mobile": true
}, - "status": "obsolete",
- "created": 0,
- "updated": 0,
- "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}
}
]
}
}
}
{- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "company": {
- "id": "string",
- "name": "string",
- "description": "string",
- "support_email": "user@example.com",
- "contact_email": "user@example.com",
- "country": "AF",
- "public": true,
- "metadata": {
- "property1": null,
- "property2": null
}, - "mode": "test",
- "system_email": "user@example.com",
- "links": [
- "string"
]
}, - "id_number": "string",
- "birth_date": "2019-08-24",
- "language": "string",
- "gender": "male",
- "title": "mr",
- "marital_status": "single",
- "nationality": "AF",
- "residency": "AF",
- "timezone": "string",
- "password": "string",
- "password1": "string",
- "password2": "string",
- "terms_and_conditions": true,
- "privacy_policy": true,
- "legal_term_versions": [
- 0
], - "auth_method": "cookie"
}
{- "status": "string",
- "data": {
- "token": "string",
- "refresh_token": "string",
- "user": {
- "id": "string",
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "groups": [
- {
- "name": "string",
- "label": "string",
- "section": "system"
}
], - "temporary": false,
- "id_number": "string",
- "birth_date": "2019-08-24",
- "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account": "string",
- "balance": 0,
- "available_balance": 0,
- "company": "string",
- "owner": true,
- "language": "string",
- "nationality": "AF",
- "residency": "AF",
- "gender": "male",
- "title": "mr",
- "marital_status": "single",
- "fathers_name": "string",
- "mothers_name": "string",
- "grandfathers_name": "string",
- "grandmothers_name": "string",
- "central_bank_number": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "timezone": "string",
- "website": "string",
- "business_name": "string",
- "verified": true,
- "verification": {
- "email": true,
- "mobile": true
}, - "status": "obsolete",
- "created": 0,
- "updated": 0,
- "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}
}
]
}
}, - "challenges": [
- {
- "id": "string",
- "type": "authentication",
- "durability": "ephemeral",
- "authenticator_types": [
- "totp"
], - "created": 0
}
], - "expires": 0,
- "created": 0
}
}
{- "user": "string",
- "company": "string",
- "password": "string",
- "session_duration": 0,
- "auth_method": "cookie"
}
{- "status": "string",
- "data": {
- "token": "string",
- "refresh_token": "string",
- "user": {
- "id": "string"
}, - "challenges": [
- {
- "id": "string",
- "type": "authentication",
- "durability": "ephemeral",
- "authenticator_types": [
- "totp"
], - "created": 0
}
], - "expires": 0,
- "created": 0
}
}
{- "status": "string",
- "data": {
- "count": 123,
- "results": [
- {
- "id": "string",
- "type": "totp",
- "details": {
- "name": "Default TOTP",
- "algorithm": "SHA1",
- "otpauth_url": "string",
- "issuer": "string",
- "account": "string",
- "key": "string"
}, - "verified": true,
- "created": 0,
- "updated": 0
}
]
}
}
{- "type": "totp"
}
{- "status": "string",
- "data": {
- "id": "string",
- "type": "totp",
- "details": {
- "name": "Default TOTP",
- "algorithm": "SHA1",
- "otpauth_url": "string",
- "issuer": "string",
- "account": "string",
- "key": "string"
}, - "verified": true,
- "created": 0,
- "updated": 0
}
}
{- "status": "string",
- "data": {
- "id": "string",
- "type": "totp",
- "details": {
- "name": "Default TOTP",
- "algorithm": "SHA1",
- "otpauth_url": "string",
- "issuer": "string",
- "account": "string",
- "key": "string"
}, - "verified": true,
- "created": 0,
- "updated": 0
}
}
{- "session": "string",
- "session_duration": 0,
- "auth_method": "cookie"
}
{- "status": "string",
- "data": {
- "token": "string",
- "refresh_token": "string",
- "user": {
- "id": "string"
}, - "challenges": [
- {
- "id": "string",
- "type": "authentication",
- "durability": "ephemeral",
- "authenticator_types": [
- "totp"
], - "created": 0
}
], - "expires": 0,
- "created": 0
}
}
{- "session": "string",
- "terms_and_conditions": true,
- "privacy_policy": true,
- "session_duration": 0,
- "groups": [
- "string"
], - "legal_term_versions": [
- 0
], - "auth_method": "cookie"
}
{- "status": "string",
- "data": {
- "token": "string",
- "refresh_token": "string",
- "user": {
- "id": "string",
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "groups": [
- {
- "name": "string",
- "label": "string",
- "section": "system"
}
], - "temporary": false,
- "id_number": "string",
- "birth_date": "2019-08-24",
- "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account": "string",
- "balance": 0,
- "available_balance": 0,
- "company": "string",
- "owner": true,
- "language": "string",
- "nationality": "AF",
- "residency": "AF",
- "gender": "male",
- "title": "mr",
- "marital_status": "single",
- "fathers_name": "string",
- "mothers_name": "string",
- "grandfathers_name": "string",
- "grandmothers_name": "string",
- "central_bank_number": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "timezone": "string",
- "website": "string",
- "business_name": "string",
- "verified": true,
- "verification": {
- "email": true,
- "mobile": true
}, - "status": "obsolete",
- "created": 0,
- "updated": 0,
- "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}
}
]
}
}, - "challenges": [
- {
- "id": "string",
- "type": "authentication",
- "durability": "ephemeral",
- "authenticator_types": [
- "totp"
], - "created": 0
}
], - "expires": 0,
- "created": 0
}
}
{- "old_password": "string",
- "new_password": "string",
- "new_password1": "string",
- "new_password2": "string",
- "clear_session_option": "all"
}
{- "status": "string"
}
{- "new_password": "string",
- "new_password1": "string",
- "new_password2": "string",
- "uid": "string",
- "token": "string",
- "clear_session_option": "all"
}
{- "status": "string"
}
{- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "company": "string",
- "id_number": "string",
- "birth_date": "2019-08-24",
- "language": "string",
- "gender": "male",
- "title": "mr",
- "marital_status": "single",
- "nationality": "AF",
- "residency": "AF",
- "timezone": "string",
- "password": "string",
- "password1": "string",
- "password2": "string",
- "terms_and_conditions": true,
- "privacy_policy": true,
- "session_duration": 0,
- "groups": [
- "string"
], - "legal_term_versions": [
- 0
], - "auth_method": "cookie"
}
{- "status": "string",
- "data": {
- "token": "string",
- "refresh_token": "string",
- "user": {
- "id": "string",
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "groups": [
- {
- "name": "string",
- "label": "string",
- "section": "system"
}
], - "temporary": false,
- "id_number": "string",
- "birth_date": "2019-08-24",
- "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account": "string",
- "balance": 0,
- "available_balance": 0,
- "company": "string",
- "owner": true,
- "language": "string",
- "nationality": "AF",
- "residency": "AF",
- "gender": "male",
- "title": "mr",
- "marital_status": "single",
- "fathers_name": "string",
- "mothers_name": "string",
- "grandfathers_name": "string",
- "grandmothers_name": "string",
- "central_bank_number": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "timezone": "string",
- "website": "string",
- "business_name": "string",
- "verified": true,
- "verification": {
- "email": true,
- "mobile": true
}, - "status": "obsolete",
- "created": 0,
- "updated": 0,
- "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}
}
]
}
}, - "challenges": [
- {
- "id": "string",
- "type": "authentication",
- "durability": "ephemeral",
- "authenticator_types": [
- "totp"
], - "created": 0
}
], - "expires": 0,
- "created": 0
}
}
{- "password": "string",
- "duration": 0
}
{- "status": "string",
- "data": {
- "token": "string",
- "refresh_token": "string",
- "user": {
- "id": "string",
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "groups": [
- {
- "name": "string",
- "label": "string",
- "section": "system"
}
], - "temporary": false,
- "id_number": "string",
- "birth_date": "2019-08-24",
- "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account": "string",
- "balance": 0,
- "available_balance": 0,
- "company": "string",
- "owner": true,
- "language": "string",
- "nationality": "AF",
- "residency": "AF",
- "gender": "male",
- "title": "mr",
- "marital_status": "single",
- "fathers_name": "string",
- "mothers_name": "string",
- "grandfathers_name": "string",
- "grandmothers_name": "string",
- "central_bank_number": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "timezone": "string",
- "website": "string",
- "business_name": "string",
- "verified": true,
- "verification": {
- "email": true,
- "mobile": true
}, - "status": "obsolete",
- "created": 0,
- "updated": 0,
- "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}
}
]
}
}, - "challenges": [
- {
- "id": "string",
- "type": "authentication",
- "durability": "ephemeral",
- "authenticator_types": [
- "totp"
], - "created": 0
}
], - "expires": 0,
- "created": 0
}
}