vaphes / pocketbase

PocketBase client SDK for python
https://pypi.org/project/pocketbase/
MIT License
332 stars 38 forks source link

how to login user and see list data collection #31

Closed bobwatcherx closed 1 year ago

bobwatcherx commented 1 year ago

for example . i have set . only those who have logged in can see the data in the collection with rules like this

@request.auth.id != ""

and how. to log in. after that see all the data?

example


    # Get full list of records from collection
    result = client.collection('fletSample').auth_with_password('bob@example.com', 'oop!@#!@#A')
    collection_data = await client.collection('fletSample').get_full_list()
    print(collection_data)
    print(result)