hendricksonsarahl / voluntr

An app that matches nonprofits with volunteers
8 stars 0 forks source link

Use token cookie in request to get org data for generating views #170

Closed rylandbell closed 7 years ago

rylandbell commented 7 years ago

On every request to an /org route, read the token cookie in the request object, pass it through process_oauth_token, and use the returned Google ID to look up an Org object and generate the appropriate view. Since this happens on several routes, it might make sense to abstract it into a separate function.