Firebase security error token expire

No not like that. Refer this post/guide