Skip to main content Link Search Menu Expand Document (external link)

user_check_authentication_exists

Description

Type: Condition

Checks if authentication info of a specific type exists for the user. For example, check if Github auth info is set on for the user.

Params

  • authType: Input string. One of password/github/google/discord

Outputs

value is set by the condition output. It holds the user’s authentication info.

Can be referenced in other blocks using outputs.<condition_name>.value

{
  "value": { 
    "type": "<String>"
    "authId": "<String>"
    "name": "<String>"
    "nickname": "<String>"			 
  }
}

Usage Example

startFlow:
  do:
  - actionId: github_create_repo
  if: 
    conditions:
      - conditionId: user_check_authentication_exists
        name: user_authentication
        params: 
          authType: 'github'
      - conditionId: github_is_user_valid
        params:
          githubUserName: "${outputs.user_authentication.value.nickname}"
    then:
      ...

The user_check_authentication_exists condition is used to verify that user authenticated themsleves using Github.

Relevant Triggers

All triggers