File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ There is also a working [example](./examples/all.go). Note that not all Provider
153
153
### Revocation
154
154
155
155
To revoke a token manually, invoke ` g.RevokeToken() ` from any context. See the [ API] ( #revoketoken ) below.
156
- There is also a working [ example] ( ./examples/all.go ) . Note that not all Providers support signing out .
156
+ There is also a working [ example] ( ./examples/all.go ) . Note that not all Providers support revocation .
157
157
158
158
---
159
159
## GOIC API
@@ -217,9 +217,9 @@ Use it to request Access token by using refresh token.
217
217
``` go
218
218
g := goic.New (" /auth/o8" , false )
219
219
// ... add providers
220
- t := &goic.Token {RefreshToken: " your refresh token" , Provider : goic.Microsoft .Name }
221
- tok , err := g.RefreshToken (t )
222
- // Do something with tok.AccessToken
220
+ old := &goic.Token {RefreshToken: " your refresh token" , Provider : goic.Microsoft .Name }
221
+ tok , err := g.RefreshToken (old )
222
+ // Do something with new tok.AccessToken
223
223
```
224
224
225
225
#### Userinfo
You can’t perform that action at this time.
0 commit comments