Pass token to frontend