fix bug with stored state

get_id() of auth provider returns tuple (id, expires) and not single object