Write oauth key to cookie on login