MCPcopy Create free account
hub / github.com/authlib/authlib / token

Function token

tests/flask/test_oauth2/conftest.py:90–103  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

88
89@pytest.fixture
90def token(db):
91 token = Token(
92 user_id=1,
93 client_id="client-id",
94 token_type="bearer",
95 access_token="a1",
96 refresh_token="r1",
97 scope="profile",
98 expires_in=3600,
99 )
100 db.session.add(token)
101 db.session.commit()
102 yield token
103 db.session.delete(token)

Callers

nothing calls this directly

Calls 2

TokenClass · 0.85
deleteMethod · 0.45

Tested by

no test coverage detected