Atlato Developer
DocsUse CasesCommunitySupport
DocsUse CasesCommunitySupport
Facebook
Linkedin
Instagram
  1. Api Integration
  • Overview
    • Developer Platform
  • Getting Started
    • Register Account
    • Manage Apps
    • Manage a Company
    • App Access
    • Store App Access
    • Mode
  • App Store
    • Authentication
    • Access Rights
    • Event Log
    • Company Settings
    • Manage Account
  • Device Integration
    • Design
    • Installation
    • Device List
  • Device API
    • Protocols
    • New Integration
    • Data Output
    • Device Input Names
  • Deployment
    • Custom Client App
  • API Request
    • REST API
    • Request Structure
    • Metadata
    • Pagination
    • Errors
    • Troubleshooting
  • Support
    • Developer Request Types
  • Guides
    • Best practices
    • Timezones
    • Libraries
    • Key Concepts
    • Terms of Use
    • Rate limits
  • Feedback Center
    • Feedback
    • Community
    • FAQ
  • Api Integration
    • Use token in your app
    • Event Logging API
    • Meta Data API
    • Lastest Device Data API
    • Past Device Data API
    • Devices API
    • Country City Currency API
  • App Integration APIs
    • Meta Data
    • Meta Data API
    • Lastest Device Data API
    • Past Device Data API
    • Event Logging API
    • Devices API
    • Country City Currency API
  • Developer Platform
    • Access
    • User
    • Device
    • Manage Account
    • Company
  1. Api Integration

Use token in your app

When you deploy your app in the sand box mode, you will see your app in the Atlato Store. To redirect into your app, you need to use the following path.
Your app should have a /welcome route which contains a param token
For example
http://localhost:3000/welcome/?token={authToken}
NOTE
http://localhost:3000 is the Web URL which is under app creation form. You can edit this to any valid url so that you can test it out.
This auth token (Access Token + Refresh Token) is not directly the access token, for security reasons it is encoded using the Window: btoa() method
To get the token to your app from the above example, please use the below decoder function
Please store this token so that you can use it to authenticate your API calls inside your app.
TIP
Once your app is in production mode, no need to change anything. Everything works just as in sandbox mode. Make sure your production URL is correct.
Modified at 2024-09-24 08:44:41
Previous
FAQ
Next
Event Logging API
Built with