Authentification avec tokens

good evening everyone please i am a school project or i am stuck, i would like to set up authentication with tokens with the kotlin language !! please help how to or if you had codes.