Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto: add JWT Payload Decoding sample #23275

Merged
merged 6 commits into from
Dec 26, 2024

Conversation

KeitoTobi1
Copy link
Contributor

@KeitoTobi1 KeitoTobi1 commented Dec 26, 2024

Added JWT Payload Decoding Examples.

$ v run .
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
auth_verify(secret, token): true
decode_payload(token): JwtPayload{
    sub: '1234567890'
    name: 'John Doe'
    iat: 1516239022
}
Elapsed time: 102 uS

Huly®: V_0.6-21709

@KeitoTobi1 KeitoTobi1 changed the title crypto: JWT Example update. crypto: JWT Payload Decoding Example Dec 26, 2024
@spytheman spytheman changed the title crypto: JWT Payload Decoding Example crypto: add JWT Payload Decoding sample Dec 26, 2024
@spytheman spytheman merged commit f8c9edd into vlang:master Dec 26, 2024
4 checks passed
@KeitoTobi1 KeitoTobi1 deleted the crypto_update branch January 1, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants