update default config sample
move check token code to require_token decorator
check token is or not exists in require_token method