Added helper functions to get tokens and clear session