Skip to content

Commit 9ccd3e0

Browse files
authored
Update modules/ROOT/pages/export-to-pdf-with-jwt-authentication-nodejs.adoc
1 parent 6f5d282 commit 9ccd3e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ROOT/pages/export-to-pdf-with-jwt-authentication-nodejs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const privateKey = `
160160
app.use(express.static(path.join(__dirname, 'public')));
161161
162162
// JWT token generation endpoint
163-
app.get('/jwt', (req, res) => {
163+
app.post('/jwt', (req, res) => {
164164
const payload = {
165165
aud: 'YOUR-API-KEY-HERE', // Replace with your actual API key
166166
iat: Math.floor(Date.now() / 1000), // Issue timestamp

0 commit comments

Comments
 (0)