Skip to main content

AuthN | C# SDK | Flow Endpoints

Flow Endpoints

Check a token

ClientToken.Check(string)

Look up a token and return its contents.

required parameters

string

A token value

Response Object

Task<Response<ClientTokenCheckResult>>

Response<ClientTokenCheckResult>

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.

required parameters

string

An ID for a login or signup flow

Response Object

Task<Response<FlowCompleteResult>>

Response<FlowCompleteResult>

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.

required parameters

FlowStartRequest

Response Object

Task<Response<FlowStartResult>>

Response<FlowStartResult>

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.

required parameters

FlowUpdateRequest

Response Object

Task<Response<FlowUpdateResult>>

Response<FlowUpdateResult>

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.

required parameters

FlowRestartRequest

Response Object

Task<Response<FlowRestartResult>>

Response<FlowRestartResult>

var data = new FlowRestartData.Builder().Build();

var request = new FlowRestartRequest
    .Builder(
        "pfl_dxiqyuq7ndc5ycjwdgmguwuodizcaqhh", 
        FlowChoice.PASSWORD, 
        data)
    .Build();

var response = await client.Flow.Restart(request);