better-near-auth 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-near-auth",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Sign in with NEAR (SIWN) plugin for Better Auth",
5
5
  "main": "src/index.ts",
6
6
  "module": "src/index.ts",
package/src/index.ts CHANGED
@@ -464,7 +464,6 @@ export const siwn = (options: SIWNPluginOptions) =>
464
464
  }
465
465
 
466
466
  try {
467
- console.log("in server authToken", parseAuthToken(authToken));
468
467
  const verification =
469
468
  await ctx.context.internalAdapter.findVerificationValue(
470
469
  `siwn:${accountId}:${network}`,
@@ -646,8 +645,6 @@ export const siwn = (options: SIWNPluginOptions) =>
646
645
  },
647
646
  }));
648
647
  } catch (error: unknown) {
649
- console.log("server authToken", authToken);
650
- console.log("server parsed authToken", parseAuthToken(authToken));
651
648
  if (error instanceof APIError) throw error;
652
649
  throw new APIError("UNAUTHORIZED", {
653
650
  message: "Something went wrong. Please try again later.",