support token and secure key

Signed-off-by: xescoder <xescoder@gmail.ru>