Authic User Data

After successfully authenticating a user with Authic your app will receive a big json hash of information about that user. Below is a representation of that hash with a description of each field.



NOTE: Many of the fields like first name last name etc will be empty unless you are specifically capturing them via Authic, or your user has a linked social account that can provide that piece of information

{
  'id':'1234',                                   # The id of your user. It is unique within your application
  'email':'jamesbrown@gmail.com',                # This is the email address of your user. It is unique within your application
  'full_name':'James Joseph Brown',              # The full name of your user
  'phone':'555666777',                           # The phone number of your user
  'billing_address_line_1': '123 Fake Street',   # The 1st line of the billing address from the payment form
  'billing_address_line_2': 'Unit 25',           # The 2nd line of the billing address from the payment form
  'billing_address_locality': 'Paris',           # The locality/city of the billing address from the payment form
  'billing_address_region': 'Texas',             # The region/state of the billing address from the payment form
  'billing_address_postal_code': '90210',        # The postal/zipcode of the billing address from the payment form
  'billing_address_country': 'US'                # A two letter country code (ISO 3166-1 alpha-2 code) of the billing address from the payment form
  'company_name':'James Brown Enterprises',      # The company name of your user
  'company_number':'123 456 XYZ',                # The registered company number of your user
  'flex_field_1':'Director',                     # The value contained entered into the 1st configurable purpose field, e.g. position title
  'flex_field_2':'+1 (231) 123-4567',            # The value contained entered into the 2nd configurable purpose field, e.g. mobile/cell phone number
  'flex_field_3':'+1 (231) 123-2222',            # The value contained entered into the 3rd configurable purpose field, e.g. Office Fax
  'flex_field_4':'Anything',                     # The value contained entered into the 4th configurable purpose field
  'flex_field_5':'Anything',                     # The value contained entered into the 5th configurable purpose field
  'groups':['user'],                             # The Authic security groups that your user is a member of. Default is 'user'
  'new_user':'false',                            # A flag indicating if the user is new, i.e. they just signed up
  'email_confirmed':'true',                      # A flag indicating if the user has confirmed their email address yet
  'current_login_provider_token':                # This is the token your user just used to login with
  {
   'provider':'facebook',                        # The authentication provider i.e. facebook/twitter/github etc
   'uid':'1234567',                              # The uid supplied by the authentication provider
   'token':'09827390824309872384723768'          # The access token from the authentication provider
  },
  'provider_tokens':                             # This is the current list of provider tokens your user has
  {
    'facebook':                                  # Indexed by the authentication provider name
    {
      'token':'09827390824309872384723768',      # The access token from the authentication provider
      'uid':'1234567'                            # The uid supplied by the authentication provider
    },
    'authic':
    {
      'token':'8972438973249083232523890234',
      'uid':'1234'
    }
  }
}