AuthN | Python SDK | Flow Endpoints
Flow Endpoints
Check a token
authn.client.token_endpoints.check(token)Look up a token and return its contents.
response = authn.client.token_endpoints.check(
token="ptu_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a",
)
Complete sign-up/sign-in
authn.flow.complete(flow_id)Complete a login or sign-up flow.
response = authn.flow.complete(
flow_id="pfl_dxiqyuq7ndc5ycjwdgmguwuodizcaqhh",
)
Restart a sign-up/sign-in flow
authn.flow.restart(flow_id, choice, data)Restart a signup-up/in flow choice.
response = authn.flow.restart(
flow_id="pfl_dxiqyuq7ndc5ycjwdgmguwuodizcaqhh",
choice=FlowChoice.PASSWORD,
data: {},
)
Start a sign-up/sign-in flow
authn.flow.start(cb_uri, email, flow_types, invitation)Start a new signup or signin flow.
response = authn.flow.start(
cb_uri="https://www.myserver.com/callback",
email="joe.user@email.com",
flow_types=[
FlowType.SIGNUP,
FlowType.SIGNIN,
],
)
Update a sign-up/sign-in flow
authn.flow.update(flow_id, choice, data)Update a sign-up/sign-in flow.
response = authn.flow.update(
flow_id="pfl_dxiqyuq7ndc5ycjwdgmguwuodizcaqhh",
choice=FlowChoice.PASSWORD,
data={
"password": "someNewPasswordHere",
},
)