generateLinkFor
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
linkType
the type of the link. E.g. LinkType.MagicLink
redirectTo
the url to redirect to after the user has clicked the link
config
additional configuration required for linkType