Oauth2.basic: def of bend-kit-oauth2@0.11.0.1 Import: import bend-kit-oauth2@0.11.0.1/oauth2.bend as Oauth2 Lines 73-75 of bend-kit-oauth2@0.11.0.1/oauth2.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-oauth2@0.11.0.1/oauth2.bend&start_line=73&end_line=75 import Base import bend-kit-url@0.4.1.0/url.bend as Url import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # RFC 6749 ยง2.3.1: id and secret are form-encoded before base64. def basic(+id: String, +secret: String) -> String: "Basic " ++ Bytes.to_base64(Bytes.from_string(Url.pct.encode_q(utf8(id)) ++ ":" ++ Url.pct.encode_q(utf8(secret)))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=from_string https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=to_base64 https://jend.leeeet.dev/definition.txt?path=bend-kit-oauth2@0.11.0.1/oauth2.bend&name=utf8 https://jend.leeeet.dev/definition.txt?path=bend-kit-url@0.4.1.0/url.bend&name=pct.encode_q