Access token is invalid for voice & video calls during sign in

400302 (InvalidAccessToken)
this error generates during the sign in with ID and and app ID where the signup does not generate the access token or how to generate access token?

Hi @Ronit_Patel,

Welcome to the Sendbird Community. In order to generate an Access Token, you’d want do pass in issue_access_token as true in your user creation process. More specific information can be found here: User | Chat Platform API | Sendbird Docs

Let me know if that doesn’t work for you and we’ll dive a bit deeper.

i have already go through the documents, i did not find any sign in method for get access token and sign in from demo call and documentation.

You can not generate an access token on sign in. You must create it on user creation, or via an update call. Once you generated the access token, you can pass it during the sign in process to authenticate.

Can you confirm if you’ve generated the token for the user?

can you please provide more information how to signin for generate access token?


As explained above, you’ll need to first generate an access token for the user via the Platform API. Once you’ve generated the access token, you can sign in with that access token by passing it into your authenticate method.

class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        // The USER_ID below should be unique to your Sendbird application.
        let params = AuthenticateParams(userId: USER_ID, accessToken: ACCESS_TOKEN)
        SendBirdCall.authenticate(with: params) { (user, error) in
            guard let user = user, error == nil else {
                // Handle error.

            // The user has been authenticated successfully and is connected to Sendbird server.
            // Register device token by using the `SendBirdCall.registerVoIPPush` or `SendBirdCall.registerRemotePush` methods.