sacsand / gofiber-firebaseauth

Firebase Authentication Middleware for Go Fiber framework.
MIT License
23 stars 8 forks source link

user struct members are exported #5

Closed cenkkoroglu closed 2 years ago

cenkkoroglu commented 2 years ago

User struct members are exported because these members are not accessible from the outside of package.

currentUserCtx := ctx.Locals("user")
marshall, err := json.Marshall(currentUserCtx)
if err != nil {
   panic(err)
}

Gives an error because there are no exported member of user struct.