Rename clear() to clearTokens()
Change token = nil to clearTokens()