Skip to content

fn new_session returns wrong type? #344

Open
@KyleSebion

Description

@KyleSebion

Not sure if this is the right place.
I was reading https://www.shuttle.dev/blog/2022/08/11/authentication-tutorial.
I saw that fn new_session is declared to return a String but seems to actually return a u128.
I tested similar, but simpler, code at https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=7f53177c59d32f1e9ac8a908c69bc9e6 and it gave an error.

The following seems to be the same fn as at shuttle.dev:

pub(crate) async fn new_session(

Am I reading/doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions