By initializing Argyle Link with a user token in your configuration, users can exit and return to Argyle Link with their progress and account details preserved:Documentation Index
Fetch the complete documentation index at: https://docs.argyle.com/llms.txt
Use this file to discover all available pages before exploring further.
- Users will not need to re-enter already provided login credentials
- Users can return to Argyle Link from any device and resume their current session
- You prevent duplicate users being created for the same end user
Common use cases
Reconnecting accounts
- Initialize Argyle Link by deep linking the user directly to the disconnected account, with a user token included in your configuration
- The user simply has to select Reconnect, allowing them to re-authenticate their account without the need to re-enter login credentials
- Once the account is reconnected, Argyle will resume retrieval of payroll data from the account
Direct deposit updates
User account management
- Connect additional payroll accounts (for example, if the user has a new job)
- Make changes to their direct deposit settings
- Revoke access at any time to their connected payroll accounts
Completing MFA
Best practices
Argyle recommends always including a user token in your configuration when Argyle Link is initialized for a user, including new users. A new user token should be generated every time you are initializing Argyle Link for a user. For security purposes, user tokens are short-lived and will expire. Beyond security benefits and providing users with a more consistent experience, this helps prevent duplicate accounts being created for the same end user. When Argyle Link is initialized without a user token, the user will be considered a new user and a new user object will be created.Following a transition period beginning Q1 of 2023, user tokens will be required in all Argyle Link configurations.
Creating a user token
Ensure user tokens are requested on your server side to prevent your API key and secret from being exposed on the front-end.Returning users
- Send a POST request to the
/user-tokensendpoint and include theidof the user in the request body as a JSON object in the format{"user": "<id>"} - The response payload will include an
accessandrefreshtoken - Initialize Argyle Link using only the
accesstoken as the user token
New users
- Create a new user by sending a POST request to the
/usersendpoint - The response payload will include a
tokenandid - Save the
idfor quickly creating user tokens for returning users in the future - Initialize Argyle Link using the
tokenas the user token
Example configurations
- Web
- iOS
- Android
- React Native
Decoded tokens
Argyle utilizes JWT tokens for user tokens. For troubleshooting, JWT tokens can be decoded. However, we do not recommend monitoring individual token fields such as expiry date, and instead recommend creating a new user token every time Argyle Link is to be initialized as a best practice. Decoded JWT token payload:client_id- client’s unique identifierexp- expiry date in seconds Unix timeiat- issue date in seconds Unix timeiss- issuer of the tokenjti- unique token idsub- subject of the token (user_id)user_id-user_idof the user