//[passport](../../../index.md)/[com.yandex.passport.api](../index.md)/[Passport](index.md)/[createPassportCode](create-passport-code.md)

# createPassportCode

[passport]\

@Deprecated

@NonNull

~~open~~ ~~fun~~ [~~createPassportCode~~](create-passport-code.md)~~(~~@NonNullenvironment: [PassportEnvironment](../-passport-environment/index.md), @NonNullvalue: String~~)~~~~:~~ [PassportCode](../-passport-code/index.md)

#### Deprecated

Replace with [from](../../../passport/com.yandex.passport.api/-passport-code/-factory/from.md).
