+191
src/lib/handlers/handshake.ts
+191
src/lib/handlers/handshake.ts
···
···+import { systemsGmstnDevelopmentChannelRecordSchema } from "@/lib/types/lexicon/systems.gmstn.development.channel";+"JWT authentication failed. Did you submit the right inter-service JWT to the right endpoint with the right signatures?",+`something went wrong fetching the record from the given backlink ${JSON.stringify(backlink)}`,+"Something went wrong when fetching backlink channel records. Check the Shard logs if possible.",+"One of the backlinks returned by Constellation did not resolve to a proper lexicon Channel record.",+// did of the backlink. if there are any channels described by unauthorised parties, simply drop them.+// we should resolve the full record or add something that can tell us where to find this shard.+// likely, we should simply resolve the described shard record, which we can technically do faaaaar earlier on in the request+// also incorrectly assumes that the storeAt rkey is a domain when it can in fact be anything.+"Channels provided during the handshake had a mismatch between the channel values. Ensure that you are only submitting exactly the channels you have access to.",
+115
src/lib/sessions.ts
+115
src/lib/sessions.ts
···
···
+10
src/lib/types/handshake.ts
+10
src/lib/types/handshake.ts
···
+7
src/lib/types/http/handlers.ts
+7
src/lib/types/http/handlers.ts
+2
-2
src/lib/types/http/responses.ts
+2
-2
src/lib/types/http/responses.ts
······
······
+7
src/lib/utils/crypto.ts
+7
src/lib/utils/crypto.ts
+14
src/lib/utils/verifyJwt.ts
+14
src/lib/utils/verifyJwt.ts
···
···
+7
src/routes/handshake/route.ts
+7
src/routes/handshake/route.ts
+2
-2
src/routes/index.ts
+2
-2
src/routes/index.ts
···
···
-30
src/routes/testing/route.ts
-30
src/routes/testing/route.ts
···
···