Skip to content

Commit

Permalink
update expiresInSeconds (#55)
Browse files Browse the repository at this point in the history
Make the code sample match the interface
  • Loading branch information
JEverhart383 authored Feb 9, 2024
1 parent 0790f9c commit 4b8e172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const token = await Knock.signUserToken("jhammond", {
signingKey: "S25vY2sga25vY2sh...",
// Optional: How long the token should be valid for, in seconds (default 1 hour)
// For long-lived connections, you will need to refresh the token before it expires.
expiresIn: 60 * 60,
expiresInSeconds: 60 * 60,
});

// This token can now be safely passed to your client e.g. in a cookie or API response.
Expand Down

0 comments on commit 4b8e172

Please sign in to comment.