MCPcopy Create free account
hub / github.com/rilldata/rill / ProjectInviteAccept

Method ProjectInviteAccept

admin/urls.go:347–350  ·  view source on GitHub ↗

ProjectInviteAccept returns the URL for accepting a project invite.

(org, project string)

Source from the content-addressed store, hash-verified

345
346// ProjectInviteAccept returns the URL for accepting a project invite.
347func (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.
353func (u *URLs) MagicAuthTokenOpen(org, project, token string) string {

Callers 1

AddProjectMemberUserMethod · 0.80

Calls 3

FrontendMethod · 0.95
MustJoinURLFunction · 0.92
MustWithQueryFunction · 0.92

Tested by

no test coverage detected