<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def token(self):
 """ get the token """

        header = self.default_headers.get('Authorization', '')
        prefex = 'Bearer '
        if header.startswith(prefex):
            token = header[len(prefex):]
        else:
            token = header
        return token