B4A Code Snippet Get the expiration time from firebase JWT token - Erel    Feb 14, 2023   (7 reactions) Private Sub GetExpiryTime(JWTToken As String) As Long Dim parts() As String = Regex.Split("\.", JWTToken) Dim b() As Byte = UrlSafeDecodeBase64(parts(1)) Dim s As String = BytesToString(b, 0, b.Length, "utf8") Dim map As Map = s.As(JSON).ToMap Log(map.As(JSON).ToString) If map.ContainsKey("exp") Then Dim expire As Long = map.Get("... B4J Code Snippet Create JWT tokens and verify them - Addo    Jan 31, 2025   (7 reactions) hello everyone i was in need to create jwt tokens and verify them in my b4j server app so i created... for the signature. End Sub ' Creates a JWT (JSON Web Token) for a given username. Sub CreateJWT(username As String) As String Dim header As Map ' JWT header (contains algorithm and token... used for signing (HMAC-SHA256). header.Put("typ", "JWT") ' Type of token... (header.payload.signature). End Sub ' Verifies a JWT. Sub VerifyJWT(token As String) As Boolean... B4A Question how to use JWT token authentication in Okhttputils - junaidahmed    Jun 14, 2023 I am using okhttputil2 library to get data from server via api.I would like to know how to use JWT token authentication in Okhttputils... B4J Code Snippet [B4X] Get JWT Payload (JavaWebToken) - Alexander Stolte    Jan 18, 2025   (9 reactions) This function reads the payload of a jwt token and returns a map
Input token...-_prk235_YU8fYBxU
Payload from this token:
160926
Public Sub GetJWTPayload(Token As String) As Map
Dim su... B4J Code Snippet [web]JSON Web Token (auth0/java-jwt) - aeric    Aug 5, 2022   (18 reactions) You can use this class to generate JSON Web Token (JWT) for use in Web API B4J Server.
This code...-annotations-2.13.3
Sub Process_Globals
Dim jwt1 As JSONWebToken
Dim jwt2 As JSONWebToken... B4A Question [SOLVED] REST API authentication with JWT - josejad    Apr 18, 2019 tested the login function, and I get the JWT token rigth: POST /api/ action=login&username=admin&password=master I get the response { "JWT"....GetString) Dim root As Map = parser.NextObject Dim JWT As String = root.Get("JWT") Pass = JWT Log("Password: " & Pass) End If j.Release End Sub Now, I think I have to pass the JWT token before getting data again. Default API JWT... B4A Question Firebase TokenId TimedOut - Erel (first post)    Feb 14, 2023 You can parse the JWT token with this code: https://www.b4x.com/android/forum/threads/get-the-expiration-time-from-firebase-jwt-token.146137/... Share My Creation [B4J] [MySQL] [API] Server (Key + Token) and [B4X] User Login Apps - aeric    Aug 16, 2024   (39 reactions) Updates: Latest B4XPages user login client apps (using B4J server): https://www.b4x.com/android/forum/threads/project-template-user-login-client-b4x.161914/ 105281 Finally I would like to share my B4J API server written in B4J. Compare to my previous PHP API, this API server implements user access token to authorize user to consume the API. SQL.zip - SQL script to create necessary database and tables in MySQL server. jAPI.zip - Source code for server app (B4J). B4A.zip - Source code... B4A Question JWT for B4A - aeric (first post)    Aug 19, 2023 There is a code to check the JWT token expiry inside the B4J-SendTool
https://www.b4x.com/android/forum/threads/firebasenotifications-push-messages-firebase-cloud-messaging-fcm.67716/
Maybe it works.... B4i Question B4I JWT [Solved] - aeric (first post)    Apr 10, 2025
to generate, decrypt and validate a JSON Web Token?
JWT is not encrypted.
I think the token should be generated and validated on server, not from client app.... Page: 1   2   3   4   5   6   7   |