Retrieves current Unix timestamp for token generation
()
| 122 | |
| 123 | // Retrieves current Unix timestamp for token generation |
| 124 | pub fn get_current_timestamp() -> u64 { |
| 125 | SystemTime::now() |
| 126 | .duration_since(UNIX_EPOCH) |
| 127 | .unwrap() |
| 128 | .as_secs() |
| 129 | } |
| 130 | |
| 131 | // Creates a new session with time-based access token |
| 132 | // Flow: |
no outgoing calls
no test coverage detected