When using custom policies:
Both are described by Azure Active Directory B2C: Manage SSO and token customization with custom policies.