pusher / pusher/docs

Pusher Beams | Invalid JWT Claims Error: "Token used before issued" on Pusher iOS during beamsClient.setUserId on iOS Simulator

Open
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CSS
Stars
8
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Hello Pusher Support Team,

I am encountering an issue with the Pusher Beams SDK on an iOS Simulator. When attempting to set the user ID using beamsClient.setUserId, I receive the following error: "Invalid JWT claims: Token used before issued".

Steps to Reproduce:

Initialize the Beams client on the iOS Simulator.
Call beamsClient.setUserId with a valid user ID and JWT.
Observe the error "Invalid JWT claims: Token used before issued".

iOS Simulator
Version 15.4 (1019.2)

Also, can I use both device interests and authenticated users with Pusher Beams on the same device in an iOS application or iOS Simulator?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file, test, or entry point is named. Review the Pusher Beams iOS authentication documentation and the setUserId flow, then document the cause and requirements for the JWT timing error and whether interests and authenticated users can coexist on one device.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios
Domain
authentication, documentation, mobile-dev
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.