MCPcopy Index your code
hub / github.com/diffgram/diffgram / logout

Function logout

default/methods/user/logout.py:22–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21@routes.route('/api/v1/user/logout', methods = ['GET'])
22def logout():
23 if settings.USE_OAUTH2:
24 return oauth2_logout()
25 else:
26 login_session['user_id'] = ''
27 return {"url_redirect": None}, 200

Callers

nothing calls this directly

Calls 1

oauth2_logoutFunction · 0.85

Tested by

no test coverage detected