CoCalc Manual Logo
We provide the best real-time collaborative environment for Jupyter, LaTeX, and SageMath!
  • Introduction
  • Core Applications
  • Signature Features
  • Enhanced Capabilities
    • Frame Editor
    • Software Environment
    • Visual Studio Code Server
    • R IDE
    • X11 Graphical Desktop
    • Sage Worksheets
    • Markdown
    • Rich Text Editing
    • CSV Viewer
    • Whiteboard
    • Task Lists
    • Stopwatches and Timers
    • Slides
    • Snippets
    • Backups
    • API Keys
    • API v2
    • API v1 (deprecated)
      • Deprecation Notice
      • Purpose
      • Protocol and Data Format
      • Authentication
      • Additional References
      • API Message Reference
        • add_collaborator
        • add_license_to_project
        • change_email_address
        • change_password
        • copy_path_between_projects
        • copy_path_delete
        • copy_path_status
        • copy_public_path_between_projects
        • create_account
        • create_project
        • create_support_ticket
        • delete_account
        • disconnect_from_project
        • forgot_password
        • get_available_upgrades
        • get_support_tickets
        • get_usernames
        • invite_collaborator
        • invite_noncloud_collaborators
        • log_client_error
        • metrics
        • ping
        • project_exec
        • public_get_text_file
        • query
        • read_text_file_from_project
        • remove_collaborator
        • remove_license_from_project
        • reset_forgot_password
        • start_metrics
        • touch_project
        • unlink_passport
        • user_auth
        • user_search
        • write_text_file_to_project
        • API Examples & Howto
      • Copy a file between projects
      • Embedding in an IFrame
      • IFrame communication
    • Display Options
  • User Interface
  • Service Options
  • How-tos
  • Essential Guide
  • Instructor Guide
  • Student Guide
  • Troubleshooting

Appendix

  • References
  • Index
CoCalc Manual
  • Enhanced Capabilities
  • API v1 (deprecated)
  • unlink_passport
  • Ask us a Question!

unlink_passport

  • strategy: passport strategy (required)

  • id: numeric id for user and passport strategy (required)

Unlink a passport auth for the account.

Strategies are defined in the database and may be viewed at /auth/strategies.

Example:

Get passport id for some strategy for current user.

curl -u sk_abcdefQWERTY090900000000: \
  -H "Content-Type: application/json" \
  -d '{"query":{"accounts":{"account_id":"e6993694-820d-4f78-bcc9-10a8e336a88d","passports":null}}}' \
  https://cocalc.com/api/v1/query
==> {"query":{"accounts":{"account_id":"e6993694-820d-4f78-bcc9-10a8e336a88d",
                          "passports":{"facebook-14159265358":{"id":"14159265358",...}}}},
     "multi_response":false,
     "event":"query",
     "id":"a2554ec8-665b-495b-b0e2-8e248b54eb94"}

Unlink passport for that strategy and id.

curl -u sk_abcdefQWERTY090900000000: \
  -d strategy=facebook \
  -d id=14159265358 \
  https://cocalc.com/api/v1/unlink_passport
==> {"event":"success",
     "id":"14159265358"}

Note that success is returned regardless of whether or not passport was linked for the given strategy and id before issuing the API command.

Previous Next

© Copyright 2025, Sagemath, Inc., CC BY-4.0 licensed.

Please contact us for Questions and Feedback, Documentation Repository, Privacy Policy and ToS.

Edit this page on GitHub

Start CoCalc – start free, upgrade later!

Start CoCalc