0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

docs: remove persistAccessToken from go web docs (#1899)

This commit is contained in:
Xiao Yijun 2022-09-09 11:15:24 +08:00 committed by GitHub
parent 6d7919f0bc
commit f9879df7bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View file

@ -165,7 +165,6 @@ func main() {
Endpoint: "${props.endpoint}",
AppId: "${props.appId}",
AppSecret: "${props.appSecret}",
PersistAccessToken: true,
}
// ...
@ -173,8 +172,6 @@ func main() {
</code>
</pre>
The `PersistAccessToken` config indicates whether the access token needs to be stored in the session.
### Init LogtoClient for each user request
```go

View file

@ -161,7 +161,6 @@ func main() {
Endpoint: "${props.endpoint}",
AppId: "${props.appId}",
AppSecret: "${props.appSecret}",
PersistAccessToken: true,
}
// ...
@ -169,8 +168,6 @@ func main() {
</code>
</pre>
其中 PersistAccessToken 表示是否需要把 access token 存储到 session 中。
### 为每个请求初始化 LogtoClient
```go