AmILoggedIntoDevTo

Tell if a user is logged in (either via an $apiKey or the OAuth flow).

Note: We'll deprecate this field in favor of id as with our other integrations if/when DEV adds an endpoint to retrieve information about the currently logged in user. However, this field can be safely relied on to work even after that happens.

You can find or create your DEV.to API keys in the settings menu on dev.to

query AmILoggedIntoDevTo($apiKey: String) { me(auths: { devToAuth: { apiKey: $apiKey } }) { devTo { isLoggedIn } } }
Types used in this example
Query

No description

String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Viewer

Currently authed user

OneGraphServiceAuths

No description

OneGraphDevToAuthArg

No description

devTo

No description

Boolean

The Boolean scalar type represents true or false.

____________________________________________________________________________________________________