Skip to content

Commit

Permalink
add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Feb 8, 2020
1 parent 6ad45ed commit 788f8f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/next-server/server/api-utils.ts
Expand Up @@ -304,6 +304,7 @@ export function tryGetPreviewData(
const tokenPreviewData = cookies[COOKIE_NAME_PRERENDER_DATA]

const jsonwebtoken = require('jsonwebtoken') as typeof import('jsonwebtoken')
// TODO: handle error
const encryptedPreviewData = jsonwebtoken.verify(
tokenPreviewData,
options.previewModeSigningKey
Expand Down

0 comments on commit 788f8f3

Please sign in to comment.