mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-17 05:14:52 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -3,5 +3,5 @@ curl "http://localhost:8080/user/Login" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
"email": "joe@example.com",
|
||||
"password": "mySecretPass123"
|
||||
"password": "Password1"
|
||||
}'
|
||||
@@ -13,7 +13,7 @@ func LogAuserIn() {
|
||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := userService.Login(&user.LoginRequest{
|
||||
Email: "joe@example.com",
|
||||
Password: "mySecretPass123",
|
||||
Password: "Password1",
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ async function logAuserIn() {
|
||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await userService.login({
|
||||
email: "joe@example.com",
|
||||
password: "mySecretPass123",
|
||||
password: "Password1",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user