first commit

This commit is contained in:
Sas Andy
2024-12-09 09:51:19 +07:00
commit ecc5dfd9c0
69 changed files with 5365 additions and 0 deletions

18
services/auth/jwt_test.go Normal file
View File

@@ -0,0 +1,18 @@
package auth
import (
"testing"
"sismedika.com/sas/westone/types"
)
func TestCreateJWT(t *testing.T) {
token, err := CreateJWT(types.DataJWT{})
if err != nil {
t.Errorf("error creating JWT: %v", err)
}
if token == "" {
t.Error("expected token to be not empty")
}
}