def save_token(self):
if self.token is None:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>self.doc_ref.set({<EOL>self.field_name: self.serializer.dumps(self.token)<EOL>})<EOL><DEDENT>except Exception as e:<EOL><INDENT>log.error('<STR_LIT>'.format(str(e)))<EOL>return False<EOL><DEDENT>return True<EOL>
Saves the token dict in the store
:return bool: Success / Failure