skip to Main Content

Seo – Next.JS dynamic meta tags

I added some dynamic meta tags for a page in my next.js application. import CoinTossPage from '@/views/CoinTossPage'; import React, { useEffect, useState } from 'react'; import Head from 'next/head'; import { useRouter } from 'next/router'; import axios from 'axios'; function…

VIEW QUESTION

Javascript – JWT verification with jose is failing

I have the following Next.js/Clerk.js middleware: import { authMiddleware } from "@clerk/nextjs"; import { jwtVerify } from "jose"; export default authMiddleware({ publicRoutes: ["/", "/contact", "/pricing", "/api/webhooks/user", "/api/reviews/add", "/api/user"], afterAuth (auth, req, evt) { const secret = new TextEncoder().encode (process.env.CLERK_PUBLIC_KEY) const…

VIEW QUESTION
Back To Top
Search