Done Category, Product Catalogue, Customer, Vendor, Purchase Invoice Module

This commit is contained in:
2026-08-28 11:30:18 +05:30
parent 0d13833679
commit 189f49ed07
118 changed files with 12624 additions and 4004 deletions

17
kifi-api/TestJwt.java Normal file
View File

@@ -0,0 +1,17 @@
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.security.Keys;
import java.util.HashMap;
public class TestJwt {
public static void main(String[] args) {
try {
byte[] key = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa".getBytes();
HashMap<String, Object> claims = new HashMap<>();
claims.put("userId", 1L);
String token = Jwts.builder().claims(claims).signWith(Keys.hmacShaKeyFor(key)).compact();
Long parsed = Jwts.parser().verifyWith(Keys.hmacShaKeyFor(key)).build().parseSignedClaims(token).getPayload().get("userId", Long.class);
System.out.println("Parsed: " + parsed);
} catch(Exception e) {
e.printStackTrace();
}
}
}