@auditauth/next 0.1.0 → 0.1.2

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/dist/sdk.js +1 -4
  2. package/package.json +1 -1
package/dist/sdk.js CHANGED
@@ -1,3 +1,4 @@
1
+ 'use server';
1
2
  import { NextResponse } from "next/server";
2
3
  import { importSPKI, jwtVerify } from 'jose';
3
4
  import { SETTINGS } from "./settings";
@@ -172,10 +173,6 @@ class AuditAuthNext {
172
173
  if (res.status === 401 && refresh) {
173
174
  const data = await this.refresh(refresh);
174
175
  if (data?.access_token && data?.refresh_token) {
175
- this.setCookieTokens({
176
- at: data.access_token,
177
- rt: data.refresh_token,
178
- });
179
176
  res = await doFetch(data.access_token);
180
177
  }
181
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auditauth/next",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Official AuditAuth SDK for Next.js",
5
5
  "license": "MIT",
6
6
  "author": "Nimibyte",