Skip to content

Commit 066e7c2

Browse files
committed
docs: code clarity
1 parent 9cf00c0 commit 066e7c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ There is also a working [example](./examples/all.go). Note that not all Provider
153153
### Revocation
154154

155155
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.
157157

158158
---
159159
## GOIC API
@@ -217,9 +217,9 @@ Use it to request Access token by using refresh token.
217217
```go
218218
g := goic.New("/auth/o8", false)
219219
// ... 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
223223
```
224224

225225
#### Userinfo

0 commit comments

Comments
 (0)