rehive.auth.get().then(function(res){ ... },function(err){" ... })
{- "status": "string",
- "data": [
- {
- "id": "string",
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "first_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",
- "language": "string",
- "nationality": "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": { },
- "timezone": "string",
- "website": "string",
- "business_name": "string",
- "verified": true,
- "verification": {
- "email": true,
- "mobile": true
}, - "status": "obsolete",
- "created": "string",
- "updated": "string",
- "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",
- "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",
- "timezone": "string",
- "password1": "string",
- "password2": "string",
- "terms_and_conditions": true,
- "privacy_policy": true,
- "legal_term_versions": [
- 0
], - "auth_method": "cookie",
- "mode": "test",
- "links": [
- "string"
]
}
{- "status": "string",
- "data": {
- "first_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",
- "timezone": "string",
- "password1": "string",
- "password2": "string",
- "terms_and_conditions": true,
- "privacy_policy": true,
- "legal_term_versions": [
- 0
], - "auth_method": "cookie",
- "mode": "test",
- "links": [
- "string"
]
}
}
{- "user": "string",
- "company": "string",
- "password": "string",
- "session_duration": 0,
- "auth_method": "cookie"
}
{- "status": "string",
- "data": {
- "user": "string",
- "company": "string",
- "password": "string",
- "session_duration": 0,
- "auth_method": "cookie"
}
}
Deletes all non-permanent auth tokens as well as the current logged in session.
{ }
{- "status": "string",
- "data": { }
}
{- "type": "totp",
- "details": { }
}
{- "status": "string",
- "data": {
- "id": "string",
- "type": "totp",
- "details": { },
- "verified": true,
- "created": "string",
- "updated": "string"
}
}
{- "status": "string",
- "data": {
- "id": "string",
- "type": "totp",
- "details": { },
- "verified": true,
- "created": "string",
- "updated": "string"
}
}
{- "status": "string",
- "data": [
- {
- "otpauth_url": "string",
- "issuer": "string",
- "account": "string",
- "key": "string",
- "algorithm": "string",
- "confirmed": true,
- "created": "string",
- "updated": "string"
}
]
}
{- "old_password": "string",
- "new_password1": "string",
- "new_password2": "string"
}
{- "status": "string",
- "data": {
- "old_password": "string",
- "new_password1": "string",
- "new_password2": "string"
}
}
{- "new_password1": "string",
- "new_password2": "string",
- "uid": "string",
- "token": "string"
}
{- "status": "string",
- "data": {
- "new_password1": "string",
- "new_password2": "string",
- "uid": "string",
- "token": "string"
}
}
{- "first_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",
- "timezone": "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": {
- "first_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",
- "timezone": "string",
- "password1": "string",
- "password2": "string",
- "terms_and_conditions": true,
- "privacy_policy": true,
- "session_duration": 0,
- "groups": [
- "string"
], - "legal_term_versions": [
- 0
], - "auth_method": "cookie"
}
}