Library for using invitation codes