uibee 1.6.1 → 1.6.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.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NextResponse } from 'next/server';
|
|
2
2
|
import type { AuthTokenProps } from 'uibee/utils';
|
|
3
|
-
export default function AuthToken({
|
|
3
|
+
export default function AuthToken({ req, frontendURL }: AuthTokenProps): Promise<NextResponse<unknown>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextResponse } from 'next/server';
|
|
2
|
-
export default async function AuthToken({
|
|
3
|
-
const url = new URL(
|
|
2
|
+
export default async function AuthToken({ req, frontendURL }) {
|
|
3
|
+
const url = new URL(req.url);
|
|
4
4
|
const token = url.searchParams.get('access_token');
|
|
5
5
|
const btg = url.searchParams.get('btg');
|
|
6
6
|
if (!token) {
|
package/package.json
CHANGED
package/src/types/utils.d.ts
CHANGED
package/src/utils/auth/token.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NextResponse } from 'next/server'
|
|
2
2
|
import type { AuthTokenProps } from 'uibee/utils'
|
|
3
3
|
|
|
4
|
-
export default async function AuthToken({
|
|
5
|
-
const url = new URL(
|
|
4
|
+
export default async function AuthToken({ req, frontendURL }: AuthTokenProps) {
|
|
5
|
+
const url = new URL(req.url)
|
|
6
6
|
const token = url.searchParams.get('access_token')
|
|
7
7
|
const btg = url.searchParams.get('btg')
|
|
8
8
|
if (!token) {
|