Ready to post? First, try searching for your answer.
I think I’m missing something here, but the quickstart at Auth0 Next.js SDK Quickstarts: Add Login to your Next.js application works fine, but the bearer tokens that are created don’t seem to be valid JWT, they are JWE or something else. Is there any documentation on how to get the SDK to provide actual JWT?
tyf
May 31, 2024, 10:22pm
3
Hey there @firebelly welcome to the community!
The access token you’re getting back is most likely opaque as the quickstart doesn’t include an audience param.
You’ll need to pass an audience
param in authorizationParams
:
# Examples
- [Create your own instance of the SDK](#create-your-own-instance-of-the-sdk)
- [Customize handlers behavior](#customize-handlers-behavior)
- [Use custom auth urls](#use-custom-auth-urls)
- [Protecting a Server-Side Rendered (SSR) Page](#protecting-a-server-side-rendered-ssr-page)
- [Protecting a Client-Side Rendered (CSR) Page](#protecting-a-client-side-rendered-csr-page)
- [Protect an API Route](#protect-an-api-route)
- [Protecting pages with Middleware](#protecting-pages-with-middleware)
- [Access an External API from an API Route](#access-an-external-api-from-an-api-route)
- [Add a signup handler](#add-a-signup-handler)
- [Use with Base Path and Internationalized Routing](#use-with-base-path-and-internationalized-routing)
- [Use a custom session store](#use-a-custom-session-store)
- [Back-Channel Logout](#back-channel-logout)
See also the [example app](./example-app).
### Create your own instance of the SDK
When you use the named exports, the SDK creates an instance of the SDK for you and configures it with the provided environment variables.
This file has been truncated. show original
system
Closed
June 14, 2024, 10:23pm
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.