Skip to content

docs: Update first 2 examples to work as written#625

Open
bpedroza wants to merge 1 commit intofirebase:mainfrom
bpedroza:example-update
Open

docs: Update first 2 examples to work as written#625
bpedroza wants to merge 1 commit intofirebase:mainfrom
bpedroza:example-update

Conversation

@bpedroza
Copy link

@bpedroza bpedroza commented Mar 3, 2026

Currently, the examples in the readme throw a DomainException because the key 'example_key' is too short. This is just an update to the readme to provide an example that will work out of the box.

Copy link
Collaborator

@bshaffer bshaffer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be properly fixed in #626

use Firebase\JWT\Key;

$key = 'example_key';
$key = 'example_key_of_sufficient_length';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I believe this is not long enough (it needs to be 256 characters).

I have a PR coming which will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants