Authentication is the act of validating the identity of each user before they access a system. Agora uses digital tokens to authenticate users and their privileges before they access Signaling. Each token is valid for a limited period and works only for a specific user ID.
This example shows you how to retrieve a token from an authentication server and use it to connect securely to Signaling.
For context on this implementation and a full explanation of the essential code snippets used in this example, read the Secure authentication with tokens document. To quickly deploy a token server, see Create and run a token server. You use your token server URL for user authentication in this example.
For the UI implementation of this example, refer to TokenAuthenticationView.swift
.
To see how to run this example, refer to the README in the root folder or one of the complete product guides.