AuthN | C# SDK | Flow Endpoints
Flow Endpoints
Check a token
ClientToken.Check(string)Look up a token and return its contents.
var response = await client.Client.Token.Check("ptu_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a");
Complete sign-up/sign-in
Flow.Complete(string)Complete a sign-up or sign-in flow.
var response = await client.Flow.Complete("pfl_dxiqyuq7ndc5ycjwdgmguwuodizcaqhh");
Start a sign-up/sign-in flow
Flow.Start(FlowStartRequest)Start a new sign-up or sign-in flow.
FlowType[] flowType = { FlowType.Signin, FlowType.Signup };
var request = new FlowStartRequest
.Builder()
.WithEmail("joe.user@email.com")
.WithCBUri("https://www.myserver.com/callback")
.WithFlowType(flowType)
.WithInvitation("pmc_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a")
.Build();
var response = await client.Flow.Start(request);
Update a sign-up/sign-in flow
Flow.Update(FlowUpdateRequest)Update a sign-up/sign-in flow.
FlowUpdateDataPassword flowUpdateData = new FlowUpdateDataPassword
.Builder("hunter2")
.Build();
var request = new FlowUpdateRequest
.Builder(
"pfl_dxiqyuq7ndc5ycjwdgmguwuodizcaqhh",
FlowChoice.PASSWORD,
flowUpdateData)
.Build();
var response = await client.Flow.Update(request);
Restart a sign-up/sign-in flow
Flow.Restart(FlowRestartRequest)Restart a sign-up/sign-in flow choice.
var data = new FlowRestartData.Builder().Build();
var request = new FlowRestartRequest
.Builder(
"pfl_dxiqyuq7ndc5ycjwdgmguwuodizcaqhh",
FlowChoice.PASSWORD,
data)
.Build();
var response = await client.Flow.Restart(request);