generate Link For
inline suspend fun <C : LinkType.Config> AdminApi.generateLinkFor(linkType: LinkType<C>, redirectTo: String? = null, noinline config: C.() -> Unit): Pair<String, UserInfo>(source)
Generates a link for linkType
Example:
val (link, user) = generateLinkFor(LinkType.MagicLink) {
email = "example@foo.bar
}Content copied to clipboard
Parameters
link Type
the type of the link. E.g. LinkType.MagicLink
redirect To
the url to redirect to after the user has clicked the link
config
additional configuration required for linkType