Skip to content

Commit

Permalink
add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Feb 10, 2020
1 parent 030d3c6 commit 7c30d49
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 7c30d49

Please sign in to comment.