Skip to content

Function: resolveServiceUrl()

resolveServiceUrl(activity, tokenServiceUrl?): string | null

Read the reply destination off an inbound activity, if it names a usable one.

serviceUrl rides on the activity as a plain string, so it is validated against the verified token’s own serviceurl claim before anything authenticated is sent there.

object[] = ...

{ id: string; } = ...

string = ...

{ id: string; name?: string; } = ...

string = ...

string = ...

string = ...

{ id: string; name?: string; } = ...

string = ...

string = ...

string = ...

string = ...

"message" | "conversationUpdate" | "typing" = ...

string

string | null