Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alg argument #2869

Closed
wants to merge 1 commit into from
Closed

Add alg argument #2869

wants to merge 1 commit into from

Conversation

miker2049
Copy link

While this shouldn't be necessary in backend/Node environment, jose seems to use its browser package if you are trying to use this in Bun. The added argument here will be ignored in proper node environments, but also makes it work in Bun. Clue here: panva/jose#471

While this shouldn't be necessary in backend/Node environment, jose seems to use its browser package if you are trying to use this in Bun.  The added argument here will be ignored in proper node environments, but also makes it work in Bun.  Clue here: panva/jose#471
@@ -40,7 +40,7 @@ export class JoseKey extends Key {

protected async getKey() {
try {
return (this.#keyObj ||= await importJWK(this.jwk as JWK))
return (this.#keyObj ||= await importJWK(this.jwk as JWK, "ES256"))
Copy link
Contributor

Choose a reason for hiding this comment

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

The key alg might not be ES256 here (though in practice, when used from @atproto/oauth-*, it probably will always be)

@matthieusieben
Copy link
Contributor

Covered by: #2879

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