fix: auth flow fixed, add getOrCreate method for user
This commit is contained in:
@@ -73,7 +73,7 @@ func (h *AuthHandler) Authenticate(c *fiber.Ctx) error {
|
||||
c.Context(),
|
||||
req.PubKey,
|
||||
req.Signature,
|
||||
// add chainID to cfg
|
||||
//TODO: add chainID to cfg
|
||||
1,
|
||||
c.IP(),
|
||||
c.Get("User-Agent"),
|
||||
@@ -90,3 +90,9 @@ func (h *AuthHandler) Authenticate(c *fiber.Ctx) error {
|
||||
ExpiresAt: userToken.ExpiresAt,
|
||||
})
|
||||
}
|
||||
|
||||
func (h *AuthHandler) HelloWorld(c *fiber.Ctx) error {
|
||||
return c.Status(fiber.StatusOK).JSON(fiber.Map{
|
||||
"message": "Hello, World!",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user