Golang: Gin middleware for authentication
In this blog, we will delve into gin middleware to authorize the user access Token.
sampleRoute := router.Group("/sample")
// we are telling gin to use TokenAuthMiddleware
// for all requests with path /sample/*
sampleRoute.Use(middle...
rajurastogi.hashnode.dev1 min read