getAccessToken retrieves the access token from the context.
(ctx context.Context)
| 104 | |
| 105 | // getAccessToken retrieves the access token from the context. |
| 106 | func getAccessToken(ctx context.Context) string { |
| 107 | if token, ok := ctx.Value(accessTokenKey{}).(string); ok { |
| 108 | return token |
| 109 | } |
| 110 | return "" |
| 111 | } |
| 112 | |
| 113 | // Context key for storing the workspace ID. |
| 114 | type workspaceIDKey struct{} |
no outgoing calls