Skip to content

Commit 44eb8c7

Browse files
committed
Convert json dicts to atom
1 parent 41a82a4 commit 44eb8c7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

prolog/jwt_io.pl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,11 @@
321321
tmp_file_stream(text, File, Stream),
322322
write(Stream, PubKeyFormatted),
323323
close(Stream),
324-
SettingsKey = _{kid: Key.kid,
325-
type: "RSA",
326-
algorithm: Key.alg,
324+
atom_string(KidAtom, Key.kid),
325+
atom_string(AlgAtom, Key.alg),
326+
SettingsKey = _{kid: KidAtom,
327+
type: 'RSA',
328+
algorithm: AlgAtom,
327329
public_key: File}.
328330

329331
/* setup_jwks(+Endpoint) is nondet.

0 commit comments

Comments
 (0)