[TILES-PW-2] PLU-672: crypto-related helpers#1450
Merged
pregnantboy merged 1 commit intodevelop-v2from Mar 10, 2026
Merged
Conversation
Contributor
Author
This was referenced Mar 5, 2026
This was referenced Mar 7, 2026
kevinkim-ogp
approved these changes
Mar 9, 2026
Contributor
kevinkim-ogp
left a comment
There was a problem hiding this comment.
other than the comment from graphite, lgtm!
71fe796 to
acafb8e
Compare
6f6660b to
34416a9
Compare
Contributor
Author
Merge activity
|
34416a9 to
9221dd9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Changes
Added authentication utilities for tile password hashing and view token management with JWT-based session tokens.
What changed?
Created
auth-tiles.tshelper module with functions for:hashTilePassword,verifyTilePassword)generateTokenNonce)generateViewToken,verifyViewToken)The view tokens include tileId, viewOnlyKey, and tokenNonce in the payload and expire after 24 hours. Password hashes are automatically invalidated when the viewOnlyKey or passwordNonce changes since it's used as the salt.
How to test?
Covered by unit tests