Skip to content

Commit

Permalink
Fix typo in Token docs (phoenixframework#5781)
Browse files Browse the repository at this point in the history
  • Loading branch information
ollien authored Apr 15, 2024
1 parent aeb6640 commit dfb0c00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/phoenix/token.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ defmodule Phoenix.Token do
for use in Channels, API authentication, and more.
The data stored in the token is signed to prevent tampering, and is
optionally encrypted. This means that, so long as the
optionally encrypted. This means that, so long as the
key (see below) remains secret, you can be assured that the data
stored in the token has not been tampered with by a third party.
However, unless the token is encrypted, it is not safe to use this
token to store private information, such as a user's sensitive
identification data, as it can be trivially decoded. If the
token is encrypted, its contents will kept secret from the client,
but it is still a best practice to encode as little secret
token is encrypted, its contents will be kept secret from the
client, but it is still a best practice to encode as little secret
information as possible, to minimize the impact of key leakage.
## Example
Expand Down

0 comments on commit dfb0c00

Please sign in to comment.