3131### Download and install
3232
3333``` bash
34- go get -u -v gopkg.in/oauth2.v3 /...
34+ go get -u -v gopkg.in/oauth2.v4 /...
3535```
3636
3737### Create file ` server.go `
@@ -43,11 +43,11 @@ import (
4343 " log"
4444 " net/http"
4545
46- " gopkg.in/oauth2.v3 /errors"
47- " gopkg.in/oauth2.v3 /manage"
48- " gopkg.in/oauth2.v3 /models"
49- " gopkg.in/oauth2.v3 /server"
50- " gopkg.in/oauth2.v3 /store"
46+ " gopkg.in/oauth2.v4 /errors"
47+ " gopkg.in/oauth2.v4 /manage"
48+ " gopkg.in/oauth2.v4 /models"
49+ " gopkg.in/oauth2.v4 /server"
50+ " gopkg.in/oauth2.v4 /store"
5151)
5252
5353func main () {
@@ -135,7 +135,7 @@ Simulation examples of authorization code model, please check [example](/example
135135``` go
136136
137137import (
138- " gopkg.in/oauth2.v3 /generates"
138+ " gopkg.in/oauth2.v4 /generates"
139139 " github.com/dgrijalva/jwt-go"
140140)
141141
@@ -180,9 +180,9 @@ if !ok || !token.Valid {
180180[ Build-Status-Image ] : https://travis-ci.org/go-oauth2/oauth2.svg?branch=master
181181[ codecov-url ] : https://codecov.io/gh/go-oauth2/oauth2
182182[ codecov-image ] : https://codecov.io/gh/go-oauth2/oauth2/branch/master/graph/badge.svg
183- [ reportcard-url ] : https://goreportcard.com/report/gopkg.in/oauth2.v3
184- [ reportcard-image ] : https://goreportcard.com/badge/gopkg.in/oauth2.v3
185- [ godoc-url ] : https://godoc.org/gopkg.in/oauth2.v3
186- [ godoc-image ] : https://godoc.org/gopkg.in/oauth2.v3 ?status.svg
183+ [ reportcard-url ] : https://goreportcard.com/report/gopkg.in/oauth2.v4
184+ [ reportcard-image ] : https://goreportcard.com/badge/gopkg.in/oauth2.v4
185+ [ godoc-url ] : https://godoc.org/gopkg.in/oauth2.v4
186+ [ godoc-image ] : https://godoc.org/gopkg.in/oauth2.v4 ?status.svg
187187[ license-url ] : http://opensource.org/licenses/MIT
188188[ license-image ] : https://img.shields.io/npm/l/express.svg
0 commit comments