gofiber-firebaseauth icon indicating copy to clipboard operation
gofiber-firebaseauth copied to clipboard

Get the token from cookie.

Open namirinz opened this issue 2 years ago • 1 comments

I'm new in web developing.

In gofiberfirebaseauth.go line 45 "IDToken := c.Get(fiber.HeaderAuthorization)". Can we get the IDToken from cookie value? instead. Like in gofiber/jwt that you can select the method (jwtFromCookie(), jwtFromHeader()).

namirinz avatar Dec 29 '21 13:12 namirinz

Hi , Thanks for pointing out. currently this package does not support "get the IDToken form cookies" . But it is possible to add support . You are welcome to make A PR on this( let me know here, if you are or i will add this in next release) . And please let me know if you need help on this . Thanks cheers!

sacsand avatar Dec 31 '21 11:12 sacsand