(u *authutil.UserInfo, t *authutil.TokenResponse, clientID string)
| 16 | } |
| 17 | |
| 18 | func (r *Renderer) TestLogin(u *authutil.UserInfo, t *authutil.TokenResponse, clientID string) { |
| 19 | r.Heading("user metadata and token") |
| 20 | |
| 21 | data := &userInfoAndTokens{UserInfo: u, Tokens: t} |
| 22 | r.JSONResult(data) |
| 23 | |
| 24 | r.Newline() |
| 25 | r.Newline() |
| 26 | r.Infof( |
| 27 | "%s Login flow is working! If this is the first time you are testing the login flow for this "+ |
| 28 | "application, consider downloading and running a quickstart next by running %s", |
| 29 | ansi.Faint("Hint:"), |
| 30 | fmt.Sprintf("`auth0 quickstarts download %s`", clientID), |
| 31 | ) |
| 32 | } |
| 33 | |
| 34 | func (r *Renderer) TestToken(client *management.Client, t *authutil.TokenResponse) { |
| 35 | r.Heading(fmt.Sprintf("token for %s", ansi.Bold(client.GetName()))) |
no test coverage detected