(ctx context.Context)
| 275 | } |
| 276 | |
| 277 | func (s *Session) UserInfo(ctx context.Context) (*Root, error) { |
| 278 | if s.userInfo != nil { |
| 279 | return s.userInfo, nil |
| 280 | } |
| 281 | |
| 282 | if err := s.get(ctx, "", &s.userInfo); err != nil { |
| 283 | return nil, err |
| 284 | } |
| 285 | return s.userInfo, nil |
| 286 | } |
| 287 | |
| 288 | func (s *Session) GenerateUserFlowCodes(ctx context.Context, source string) (*AuthCliCodesResponse, error) { |
| 289 | var codes AuthCliCodesResponse |