category
jwt_helpers
Internal shared helpers for the jwt library.
Availability:
logtalk_load(jwt(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-07-06
Compilation flags:
staticRemarks:
(none)
Inherited public predicates:
Public predicates
(no local declarations; see entity ancestors if any)
Protected predicates
json_member/3
Enumerates JSON object member values for a given key.
Compilation flags:
staticTemplate:
json_member(Key,Object,Value)Mode and number of proofs:
json_member(+atom,+term,-term) - zero_or_morejson_member_default/4
Returns a JSON object member value or a default when the key is absent.
Compilation flags:
staticTemplate:
json_member_default(Key,Object,Default,Value)Mode and number of proofs:
json_member_default(+atom,+term,+term,-term) - onejson_object_pairs/2
Extracts the key-value pairs from a JSON object term.
Compilation flags:
staticTemplate:
json_object_pairs(Object,Pairs)Mode and number of proofs:
json_object_pairs(+term,-list(compound)) - zero_or_onejson_object/1
Validates that a JSON term is an object without duplicate member names.
Compilation flags:
staticTemplate:
json_object(Object)Mode and number of proofs:
json_object(+term) - one_or_errorExceptions:
Object is not a JSON object or contains duplicate member names:domain_error(jwt_json_object,Object)pair_key_value/3
Extracts the key and value from a JSON pair compound term.
Compilation flags:
staticTemplate:
pair_key_value(Pair,Key,Value)Mode and number of proofs:
pair_key_value(+compound,-term,-term) - onebase64url_atom_bytes/2
Converts between unpadded Base64URL atoms and byte lists.
Compilation flags:
staticTemplate:
base64url_atom_bytes(Atom,Bytes)Mode and number of proofs:
base64url_atom_bytes(+atom,-list(byte)) - one_or_errorbase64url_atom_bytes(-atom,+list(byte)) - one_or_errorExceptions:
Atom is a variable or the sink is a variable:instantiation_errorAtom is neither a variable nor a valid Base64URL source term:domain_error(base64url_source,codes(Codes))Bytes cannot be encoded in the requested Base64URL sink representation:domain_error(base64url_sink,codes(Codes))Atom contains Base64URL data with characters outside the Base64URL alphabet:representation_error(base64)atom_bytes/2
Converts between an atom and its byte list representation.
Compilation flags:
staticTemplate:
atom_bytes(Atom,Bytes)Mode and number of proofs:
atom_bytes(+atom,-list(byte)) - oneatom_bytes(-atom,+list(byte)) - onebytes_atom/2
Converts a byte list into an atom.
Compilation flags:
staticTemplate:
bytes_atom(Bytes,Atom)Mode and number of proofs:
bytes_atom(+list(byte),-atom) - oneatom_list/1
Validates that a list contains only atoms.
Compilation flags:
staticTemplate:
atom_list(Atoms)Mode and number of proofs:
atom_list(+list(atom)) - zero_or_onePrivate predicates
(no local declarations; see entity ancestors if any)
Operators
(none)