Function hash_token
Source fn hash_token(token: &str) -> String
Expand description
Hashes a refresh token using SHA-256 for secure storage in the database.
§Arguments
token - The refresh token to be hashed.
§Returns
- A
String representing the SHA-256 hash of the token.
§Example
let token = "some_refresh_token";
let hashed_token = hash_token(token);