@oatscenter/trellis 0.100.0-rc.49 → 0.100.0-rc.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client_connect.js CHANGED
@@ -20,7 +20,11 @@ export function connectClientWithDeps(args, deps) {
20
20
  return AsyncResult.from((async () => {
21
21
  try {
22
22
  if (args.request.kind !== "browser")
23
- throw new AuthError({ reason: "InvalidCredential" });
23
+ throw new AuthError({
24
+ reason: "AppKindMismatch",
25
+ message: `A browser sign-in needs a browser app request, but '${args.request.id}' is a ${args.request.kind} app request; connect it with connectNativeClient`,
26
+ context: { expected: "browser", actual: args.request.kind },
27
+ });
24
28
  // An approval popup ends on the app's callback. The window that opened
25
29
  // it holds the continuation and reads the outcome; this one only
26
30
  // reports where it landed. Any other window, opened by the app or