ProjectInviteAccept returns the URL for accepting a project invite.
(org, project string)
| 345 | |
| 346 | // ProjectInviteAccept returns the URL for accepting a project invite. |
| 347 | func (u *URLs) ProjectInviteAccept(org, project string) string { |
| 348 | redirect := urlutil.MustJoinURL(u.Frontend(), org, project) // NOTE: Redirecting to the custom domain if set. |
| 349 | return urlutil.MustWithQuery(urlutil.MustJoinURL(u.external, "/auth/signup"), map[string]string{"redirect": redirect}) // NOTE: Always using the primary external URL. |
| 350 | } |
| 351 | |
| 352 | // MagicAuthTokenOpen returns the frontend URL for opening a magic auth token. |
| 353 | func (u *URLs) MagicAuthTokenOpen(org, project, token string) string { |
no test coverage detected