Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 [Feature]: JWT unsupport fiber v3 #1117

Open
3 tasks done
soullol opened this issue May 30, 2024 · 8 comments
Open
3 tasks done

🚀 [Feature]: JWT unsupport fiber v3 #1117

soullol opened this issue May 30, 2024 · 8 comments
Labels
✏️ Feature New feature or request

Comments

@soullol
Copy link

soullol commented May 30, 2024

Feature Description

current can't upgrade to fiber v3, please update the JWT for fiber v3.

Additional Context (optional)

No response

Code Snippet (optional)

package main

import "github.com/gofiber/fiber/v3"
import "github.com/gofiber/contrib/jwt"

func main() {
  // Steps to reproduce
}

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my suggestion prior to opening this one.
  • I understand that improperly formatted feature requests may be closed without explanation.
@soullol soullol added the ✏️ Feature New feature or request label May 30, 2024
@ReneWerner87
Copy link
Member

Sure we will update in a few weeks when v3 is stable

@leessmin
Copy link

leessmin commented Jun 9, 2024

Sure we will update in a few weeks when v3 is stable
Will websocket be updated as well, I'm having a hard time with the next version of v3 not being able to use websocket.

@gaby
Copy link
Member

gaby commented Jun 9, 2024

@leessmin All the contrib middlewares will be updated together for v3

@measproem
Copy link

measproem commented Jun 10, 2024

@leessmin All the contrib middlewares will be updated together for v3

Thanks for the information on fiberi18n, JWT, and WebSocket. These are really important middelwares. I hope to see version 3 stable soon.

@conioX
Copy link

conioX commented Jul 4, 2024

any info guys?

@bamboo512
Copy link

Waiting for update

@ilxqx
Copy link

ilxqx commented Jan 3, 2025

Very much looking forward to version 3.

@lukewilson2002
Copy link

For those needing a temporary solution, just use go mod vendor to copy all of your project dependencies to a new vendor directory in your project. Then open the github.com/gofiber/contrib/jwt package and change every instance of "fiber/v2" to "fiber/v3" and every instance of the struct pointer *fiber.Ctx to the new interface fiber.Ctx and it will work.

When fiber v3 is stable, the jwt middleware will be updated to match the new version. When that happens, you can delete your vendor directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✏️ Feature New feature or request
Projects
None yet
Development

No branches or pull requests

9 participants