From a347d1fe638b6daceb1918be12965a275c5ebc35 Mon Sep 17 00:00:00 2001 From: Jeff Everhart Date: Thu, 8 Feb 2024 16:33:29 -0500 Subject: [PATCH] update expiresInSeconds Make the code sample match the interface --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 28615f8..17ff9ae 100644 --- a/README.md +++ b/README.md @@ -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.