To sign out of Teams, select your profile picture at the top of the app and then choose Sign out.
You'll be able to sign in later with the same account or different credentials.
Tap More
> Settings > Sign out.
You'll be able to sign in later with the same account or different credentials.