Fixed Authentication Flow Docs #87
Open
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.
This pull request updates the off-chain authentication documentation to clarify the handling of session key expiration and EIP-712 signature creation. The most important changes are grouped below:
Session Key Expiration Format
expires_atfield in the session key policy to require a 10-digit Unix timestamp in seconds, not milliseconds, and clarified that it must match the EIP-712uint64type.EIP-712 Signature Structure and Example
EIP712Domaintype from the signature example, simplifying the domain to only include thenamefield.expires_atas a BigInt in seconds and clarified the format forallowances.viemfor signing EIP-712 typed data, specifying the domain, types, and message fields, and emphasizing the need forexpires_atto be a BigInt foruint64.Updated the 'expires_at' field to reflect Unix timestamp in seconds instead of milliseconds and adjusted the signing process to use BigInt for 'expires_at'.