Alan Zhang

Results 6 comments of Alan Zhang

set_default_scheduler() is dangerous: ``` class AsyncioScheduler(object): def __init__(self, loop=None): self.loop = loop or get_event_loop() ``` So if your requests are handled by threads and each thread has it's own event...

@tazimmerman unfortunately, I don't know of any workarounds when using threads. We moved to using [aiodataloader](https://github.com/syrusakbary/aiodataloader) with [graphene-django](https://github.com/graphql-python/graphene-django), and starting a new asyncio event loop for every request. I'm not...

Try below. It's copied from our code base with irrelevant parts stripped, so has not been tested. It uses [aiodataloader](https://github.com/syrusakbary/aiodataloader) Hope this helps. ```python import asyncio from promise.promise import Promise...

3 ways I can see: 1. If you use `@Inject(REQUEST) request`: ``` @Injectable() export class UserService { constructor( // @InjectRepository(User) private readonly userRepository: Repository, private userRepository: UserRepository, @Inject(REQUEST) request, )...

@abiro Device tracking keys/secrets are also stored in localStorage, so vulnerable to the same type of risks as the refresh tokens stored there. But I assume other meta-data about IP,...

@gary-archer I wonder if it might run into the max cookie-size limit. Some of these tokens are pretty large. To get around that you could encrypt the token, store the...