LibWeb: Parse JsonWebKey from string

Add the ability to parse a `JsonWebKey` structure from a raw string.
This commit is contained in:
devgianlu 2024-12-14 12:22:23 +01:00 committed by Andreas Kling
commit c1a65f3d53
Notes: github-actions[bot] 2024-12-16 10:36:00 +00:00
2 changed files with 76 additions and 0 deletions

View file

@ -44,6 +44,8 @@ struct JsonWebKey {
Optional<String> k;
JS::ThrowCompletionOr<GC::Ref<JS::Object>> to_object(JS::Realm&);
static JS::ThrowCompletionOr<JsonWebKey> parse(JS::Realm& realm, ReadonlyBytes data);
};
}