Some follow-up questions about the Migration from ...
# ktor
h
Some follow-up questions about the Migration from
Ktor 2.2.x
to
Ktor 3.x
When it comes to Principal Interface. It says it can be safely removed... But I'm not 100% sure of what that should be replaced with?
```@Deprecated("This interface can be safely removed")
public interface Principal```
For example, we were previously doing:
Copy code
call.principal<Principal>().doSomethinghere(UsernameType.SUBJECT_AND_ISSUER)
h
Just replace it with your own interface or class. Ktor itself does not need the marker interface anymore.
thank you color 1
h
And I suppose that's the same for ?
Copy code
@Deprecated("This interface can be safely removed")
public interface Credential
a
Yes
🙌🏽 1
h
This is awesome. I have just created a simple interface to replace them.