{"id":21801098,"url":"https://github.com/wpcodevo/golang-fiber-jwt","last_synced_at":"2025-04-13T18:30:49.255Z","repository":{"id":65695832,"uuid":"595317655","full_name":"wpcodevo/golang-fiber-jwt","owner":"wpcodevo","description":"In this comprehensive guide, you'll learn how to implement JWT (JSON Web Token) authentication in a Golang application using GORM and the Fiber web framework. ","archived":false,"fork":false,"pushed_at":"2023-10-03T08:05:32.000Z","size":30,"stargazers_count":40,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-15T15:32:42.527Z","etag":null,"topics":["api","fiber","fiber-framework","golang","gorm","gorm-orm","http-server","jwt","jwt-authentication","postgresql","rest-api"],"latest_commit_sha":null,"homepage":"https://codevoweb.com/golang-gorm-fiber-jwt-authentication/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpcodevo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-30T20:50:31.000Z","updated_at":"2024-03-24T13:01:56.000Z","dependencies_parsed_at":"2023-02-16T22:31:43.358Z","dependency_job_id":null,"html_url":"https://github.com/wpcodevo/golang-fiber-jwt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fgolang-fiber-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fgolang-fiber-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fgolang-fiber-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fgolang-fiber-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpcodevo","download_url":"https://codeload.github.com/wpcodevo/golang-fiber-jwt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226737447,"owners_count":17673684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","fiber","fiber-framework","golang","gorm","gorm-orm","http-server","jwt","jwt-authentication","postgresql","rest-api"],"created_at":"2024-11-27T11:16:17.414Z","updated_at":"2024-11-27T11:16:18.083Z","avatar_url":"https://github.com/wpcodevo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang, GORM, \u0026 Fiber: JWT Authentication\n\nIn this comprehensive guide, you'll learn how to implement JWT (JSON Web Token) authentication in a Golang application using GORM and the Fiber web framework. The REST API will be powered by a high-performance Fiber HTTP server, offering endpoints dedicated to secure user authentication, and persist data in a PostgreSQL database.\n\n![Golang, GORM, \u0026 Fiber: JWT Authentication](https://codevoweb.com/wp-content/uploads/2023/01/Golang-GORM-Fiber-JWT-Authentication.webp)\n\n## Topics Covered\n\n- Run the Golang \u0026 Fiber JWT Auth Project\n- Setup the Golang Project\n- Setup PostgreSQL and pgAdmin with Docker\n- Create the GORM Model\n- Database Migration with GORM\n    - Load the Environment Variables with Viper\n    - Create the Database Pool with GORM\n    - Migrate the GORM Model to the Database\n- Create the JWT Authentication Controllers\n    - SignUp User Fiber Context Handler\n    - SignIn User Fiber Context Handler\n    - Logout User Fiber Context Handler\n- Get the Authenticated User\n- Create the JWT Middleware Guard\n- Register the Routes and Add CORS\n- Testing the JWT Authentication Flow\n    - Register a New Account\n    - Log into the Account\n    - Access Protected Routes\n    - Logout from the API\n\n\nRead the entire article here: [https://codevoweb.com/golang-gorm-fiber-jwt-authentication/](https://codevoweb.com/golang-gorm-fiber-jwt-authentication/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Fgolang-fiber-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpcodevo%2Fgolang-fiber-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Fgolang-fiber-jwt/lists"}